11.07.2014, 16:41
There is an other way to check for booleans :
Can be replaced by
And of course "if(Easy == false)" (not in your tutorial but very useful when you needs booleans) can be replaced by
Basically, when you use "!something", the compiler checks if "something" is equal to 0. If it is, then the condition returns true and it executes what's between brackets.
And checking a value like this
Don't check if the variable is equal to 1 but checks if the variable is different from 0.
You should add these informations in your tutorial.
pawn Code:
if(Easy == true)
pawn Code:
if(Easy)
pawn Code:
if(!Easy)
And checking a value like this
pawn Code:
if(something)
You should add these informations in your tutorial.