You are viewing our Forum Archives. To view or take place in current topics click here.
#11. Posted:
ZZ9_x_iHaXoRZz
  • Fairy Master
Status: Offline
Joined: Mar 11, 201113Year Member
Posts: 4,436
Reputation Power: 8964
Status: Offline
Joined: Mar 11, 201113Year Member
Posts: 4,436
Reputation Power: 8964
I would also use a checklistbox for the clients, with this then you wont need to use the numericupdowns and you save a ton of space.
#12. Posted:
rsvq
  • Challenger
Status: Offline
Joined: Dec 18, 201113Year Member
Posts: 187
Reputation Power: 7
Status: Offline
Joined: Dec 18, 201113Year Member
Posts: 187
Reputation Power: 7
looks great keep up the good work!
#13. Posted:
MHUTricK
  • Powerhouse
Status: Offline
Joined: Oct 30, 201113Year Member
Posts: 414
Reputation Power: 17
Status: Offline
Joined: Oct 30, 201113Year Member
Posts: 414
Reputation Power: 17
XeXStozza wrote Use switchButtons instead of having 2 buttons to turn each feature on and off

Alright i'm going to add a bool.

Thanks alot for the feedback guys!
#14. Posted:
XeXStozza
  • Powerhouse
Status: Offline
Joined: Jun 08, 201212Year Member
Posts: 407
Reputation Power: 18
Status: Offline
Joined: Jun 08, 201212Year Member
Posts: 407
Reputation Power: 18
MHU_Lobbies wrote
XeXStozza wrote Use switchButtons instead of having 2 buttons to turn each feature on and off

Alright i'm going to add a bool.

Thanks alot for the feedback guys!

You don't need to add a bool, just use an if command to see if its switched ON/OFF. Bool will do the same thing though lol
#15. Posted:
MHUTricK
  • Powerhouse
Status: Offline
Joined: Oct 30, 201113Year Member
Posts: 414
Reputation Power: 17
Status: Offline
Joined: Oct 30, 201113Year Member
Posts: 414
Reputation Power: 17
All of the sudden, my hud doesn't work, and if I open up another person's tool, and use their hud, it doesn't work either. Could that be a problem with my computer?
#16. Posted:
ZZ9_x_iHaXoRZz
  • Rated Awesome
Status: Offline
Joined: Mar 11, 201113Year Member
Posts: 4,436
Reputation Power: 8964
Status: Offline
Joined: Mar 11, 201113Year Member
Posts: 4,436
Reputation Power: 8964
XeXStozza wrote
MHU_Lobbies wrote
XeXStozza wrote Use switchButtons instead of having 2 buttons to turn each feature on and off

Alright i'm going to add a bool.

Thanks alot for the feedback guys!

You don't need to add a bool, just use an if command to see if its switched ON/OFF. Bool will do the same thing though lol


for switch i do what xexstozza said:

if(buttonname.checked == true)
{
//on
}

else

{
//off
}

for your hud elems it could be a internet connection as i had that problem when i made my first tool, best way to find out use a try catch system so add

try
{

at the top of the button and at the bottom add
catch{messagebox.show("my connection sucks oj");}

}
#17. Posted:
MHUTricK
  • Powerhouse
Status: Offline
Joined: Oct 30, 201113Year Member
Posts: 414
Reputation Power: 17
Status: Offline
Joined: Oct 30, 201113Year Member
Posts: 414
Reputation Power: 17
ZZ9_x_iHaXoRZz wrote
XeXStozza wrote
MHU_Lobbies wrote
XeXStozza wrote Use switchButtons instead of having 2 buttons to turn each feature on and off

Alright i'm going to add a bool.

Thanks alot for the feedback guys!

You don't need to add a bool, just use an if command to see if its switched ON/OFF. Bool will do the same thing though lol


for switch i do what xexstozza said:

if(buttonname.checked == true)
{
//on
}

else

{
//off
}

for your hud elems it could be a internet connection as i had that problem when i made my first tool, best way to find out use a try catch system so add

try
{

at the top of the button and at the bottom add
catch{messagebox.show("my connection sucks oj");}

}


I mean I get an error in the line, but I haven't changed the line from before. And as well as every button I have that shows a little hud, does work, but doesn't show the hud, and crashes.
#18. Posted:
ZZ9_x_iHaXoRZz
  • Rigged Luck
Status: Offline
Joined: Mar 11, 201113Year Member
Posts: 4,436
Reputation Power: 8964
Status: Offline
Joined: Mar 11, 201113Year Member
Posts: 4,436
Reputation Power: 8964
MHU_Lobbies wrote
ZZ9_x_iHaXoRZz wrote
XeXStozza wrote
MHU_Lobbies wrote
XeXStozza wrote Use switchButtons instead of having 2 buttons to turn each feature on and off

Alright i'm going to add a bool.

Thanks alot for the feedback guys!

You don't need to add a bool, just use an if command to see if its switched ON/OFF. Bool will do the same thing though lol


for switch i do what xexstozza said:

if(buttonname.checked == true)
{
//on
}

else

{
//off
}

for your hud elems it could be a internet connection as i had that problem when i made my first tool, best way to find out use a try catch system so add

try
{

at the top of the button and at the bottom add
catch{messagebox.show("my connection sucks oj");}

}


I mean I get an error in the line, but I haven't changed the line from before. And as well as every button I have that shows a little hud, does work, but doesn't show the hud, and crashes.


What the error you getting bro. ?
#19. Posted:
MHUTricK
  • Powerhouse
Status: Offline
Joined: Oct 30, 201113Year Member
Posts: 414
Reputation Power: 17
Status: Offline
Joined: Oct 30, 201113Year Member
Posts: 414
Reputation Power: 17
ZZ9_x_iHaXoRZz wrote
MHU_Lobbies wrote
ZZ9_x_iHaXoRZz wrote
XeXStozza wrote
MHU_Lobbies wrote
XeXStozza wrote Use switchButtons instead of having 2 buttons to turn each feature on and off

Alright i'm going to add a bool.

Thanks alot for the feedback guys!

You don't need to add a bool, just use an if command to see if its switched ON/OFF. Bool will do the same thing though lol


for switch i do what xexstozza said:

if(buttonname.checked == true)
{
//on
}

else

{
//off
}

for your hud elems it could be a internet connection as i had that problem when i made my first tool, best way to find out use a try catch system so add

try
{

at the top of the button and at the bottom add
catch{messagebox.show("my connection sucks oj");}

}


I mean I get an error in the line, but I haven't changed the line from before. And as well as every button I have that shows a little hud, does work, but doesn't show the hud, and crashes.


What the error you getting bro. ?


Ok, the error:
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in XRPC.dll

Additional information: Exception from HRESULT: 0x82DA0004


And the code that says is messed up:
Jtag.SetMemory(elem, new byte[] { 0x00, 0x00, 0x00, 0x01 });
#20. Posted:
MHUTricK
  • Powerhouse
Status: Offline
Joined: Oct 30, 201113Year Member
Posts: 414
Reputation Power: 17
Status: Offline
Joined: Oct 30, 201113Year Member
Posts: 414
Reputation Power: 17
MHU_Lobbies wrote
ZZ9_x_iHaXoRZz wrote
MHU_Lobbies wrote
ZZ9_x_iHaXoRZz wrote
XeXStozza wrote
MHU_Lobbies wrote
XeXStozza wrote Use switchButtons instead of having 2 buttons to turn each feature on and off

Alright i'm going to add a bool.

Thanks alot for the feedback guys!

You don't need to add a bool, just use an if command to see if its switched ON/OFF. Bool will do the same thing though lol


for switch i do what xexstozza said:

if(buttonname.checked == true)
{
//on
}

else

{
//off
}

for your hud elems it could be a internet connection as i had that problem when i made my first tool, best way to find out use a try catch system so add

try
{

at the top of the button and at the bottom add
catch{messagebox.show("my connection sucks oj");}

}


I mean I get an error in the line, but I haven't changed the line from before. And as well as every button I have that shows a little hud, does work, but doesn't show the hud, and crashes.


What the error you getting bro. ?


Ok, the error:
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in XRPC.dll

Additional information: Exception from HRESULT: 0x82DA0004


And the code that says is messed up:
Jtag.SetMemory(elem, new byte[] { 0x00, 0x00, 0x00, 0x01 });


My full code is:
        public void setIcon(uint elem, uint shader, int width, int height, float x, float y, uint align, float sort = 0, int r = 255, int g = 255, int b = 255, int a = 255)
        {
            Jtag.SetMemory(elem, new byte[] { 0x00, 0x00, 0x00, 0x04 });
            Jtag.SetMemory(elem + HElems.relativeOffset, uintBytes(0x05));
            Jtag.SetMemory(elem + HElems.relativeOffset - 4, uintBytes(0x06));
            Jtag.SetMemory(elem + HElems.shaderOffset, uintBytes(shader));
            Jtag.SetMemory(elem + HElems.heightOffset, ReverseBytes(BitConverter.GetBytes(height)));
            Jtag.SetMemory(elem + HElems.widthOffset, ReverseBytes(BitConverter.GetBytes(width)));
            Jtag.SetMemory(elem + HElems.alignOffset, uintBytes(align));
            Jtag.SetMemory(elem + HElems.textOffset + 4, ReverseBytes(BitConverter.GetBytes(sort)));
            Jtag.SetMemory(elem + HElems.xOffset, ReverseBytes(BitConverter.GetBytes(x)));
            Jtag.SetMemory(elem + HElems.yOffset, ReverseBytes(BitConverter.GetBytes(y)));
        }

        public void setText(uint elem, byte[] text, uint font, float fontScale, float x, float y, uint align, int r = 255, int g = 255, int b = 255, int a = 255)
        {
            Jtag.SetMemory(elem, new byte[] { 0x00, 0x00, 0x00, 0x01 });
            Jtag.SetMemory(elem + HElems.textOffset, text);
            Jtag.SetMemory(elem + HElems.relativeOffset, uintBytes(0x05));
            Jtag.SetMemory(elem + HElems.relativeOffset - 4, uintBytes(0x06));
            Jtag.SetMemory(elem + HElems.fontOffset, uintBytes(font));
            Jtag.SetMemory(elem + HElems.alignOffset, uintBytes(align));
            Jtag.SetMemory(elem + HElems.textOffset + 4, new byte[] { 0x40, 0x00 });
            Jtag.SetMemory(elem + HElems.fontSizeOffset, ReverseBytes(BitConverter.GetBytes(fontScale)));
            Jtag.SetMemory(elem + HElems.xOffset, ReverseBytes(BitConverter.GetBytes(x)));
            Jtag.SetMemory(elem + HElems.yOffset, ReverseBytes(BitConverter.GetBytes(y)));
        }

Anyone help please?
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.