Quote:
Originally Posted by ^SmileY
>> (!Points[id]) Always return true if the points its equal or < 0 
|
Actually in that case only if it's 0.
PHP Code:
new iVariable = 0;
if( !iVariable )
client_print(0, print_chat, "passed, since (!0 == true)");
new iVariable = 1;
if( !iVariable )
client_print(0, print_chat, "didn't pass, since (!1 == false)");
new iVariable = -1;
if( !iVariable )
client_print(0, print_chat, "didn't pass, since (!-1 == false)");
// Only if( 0 ) function will not pass, in other conditions it always passes. In other words, only 0 is false, everything else is considered as true. (At least in my experience).
__________________