Hans and Gellin's problem!

Posts 113 of 13 · Page 1 of 1
Hans and Gellin's problem!
Solved!
/Request close
Look at the thread on Gellins and Hans base, on one of first 10 pages, they have the full code, tested and worked for me
Lol at your C++ knowledge. I see teh problem. /
If you talking about the "{" and "}" it does not work with that either!
Quote Originally Posted by seeplusplus View Post
If you talking about the "{" and "}" it does not work with that either!
More like the =.
Wait crap. Thanks Crash. But now I have another problem. Now the game flickers even when the hack is turned off!
Quote Originally Posted by seeplusplus View Post
Wait crap. Thanks Crash. But now I have another problem. Now the game flickers even when the hack is turned off!
Not enough code to figure it out. Just debug.
Meh, what the hell, here you go:

[php]switch ( SuperJump )
{
case 0:
if( SuperJump == 0 ){
PushToConsole("JumpVel 330.000000");
}break;
case 1:
if( SuperJump == 1 ){
PushToConsole("JumpVel 495.000000");
}break;


case 2:
if( SuperJump == 2 ){
PushToConsole("JumpVel 660.000000");
}break;


case 3:
if( SuperJump == 3 ){
PushToConsole("JumpVel 990.000000");
}break;

}
[/php]

That was the code I was talking about. Super Jump was used as an example. I use this in my PVT hack, tested and working

Provided by: MarkoJ
Quote Originally Posted by Amatowarrior View Post
Meh, what the hell, here you go:

[php]switch ( SuperJump )
{
case 0:
if( SuperJump == 0 ){
PushToConsole("JumpVel 330.000000");
}break;
case 1:
if( SuperJump == 1 ){
PushToConsole("JumpVel 495.000000");
}break;


case 2:
if( SuperJump == 2 ){
PushToConsole("JumpVel 660.000000");
}break;


case 3:
if( SuperJump == 3 ){
PushToConsole("JumpVel 990.000000");
}break;

}
[/php]

That was the code I was talking about. Super Jump was used as an example. I use this in my PVT hack, tested and working

Provided by: MarkoJ
are doing things wrong.

You don't need the if statements.
Quote Originally Posted by Crash View Post
are doing things wrong.

You don't need the if statements.
correct way to do it is:
Code:
switch(menuitem){
 case 0:
  hack defaults;
  break;
 case 1:
  hack x2;
  break;
}
}
the if statements are useless thats the switch's job to check the value of the menuitem(gellin's base, the nopt)
Thanks Amato! I should have tried that!
That actually works. Never thought of doing it that way!
Quote Originally Posted by Crash View Post
are doing things wrong.

You don't need the if statements.
It worked, and your welcome
Posts 113 of 13 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?