2 same keys under OnPlayerKeyStateChange.
#6

How structure works

pawn Код:
if(test == 0) { test=2; } //if this isnt called
else if(test == 2) {} //this is - however, even if we set the test var to 2, this wont be called if the first if is
else {} //if above isnt called, this is

if(test == 2) {} //after that check above, this block comes next
else { test=2;} //if above isn't true, this is called (which it is, so this wont be called)
However, like the people above said, you don't need to do this.
Reply


Messages In This Thread
2 same keys under OnPlayerKeyStateChange. - by Unri - 30.10.2013, 16:20
Re: 2 same keys under OnPlayerKeyStateChange. - by Konstantinos - 30.10.2013, 16:26
Re: 2 same keys under OnPlayerKeyStateChange. - by Pottus - 30.10.2013, 16:38
Re: 2 same keys under OnPlayerKeyStateChange. - by Unri - 30.10.2013, 16:53
Re: 2 same keys under OnPlayerKeyStateChange. - by Konstantinos - 30.10.2013, 16:56
Re: 2 same keys under OnPlayerKeyStateChange. - by [ABK]Antonio - 30.10.2013, 17:08

Forum Jump:


Users browsing this thread: 3 Guest(s)