SA-MP Forums Archive
how to check? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how to check? (/showthread.php?tid=416278)



how to check? - speed258 - 16.02.2013

hi guys i wanna ask how to check is my variable is negative
Example x[playerid] = -10;

how to check is variable x is negative?


Re: how to check? - dusk - 16.02.2013

you can use if(x[playerid]<0)
It should work


Re: how to check? - bensmart469 - 16.02.2013

if(x[playerid] < 0)