SA-MP Forums Archive
'Bigger than' problem - 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: 'Bigger than' problem (/showthread.php?tid=400285)



'Bigger than' problem - DaRoderick - 17.12.2012

Simple:

pawn Код:
if(PlayerInfo[playerid][pBank] > 1000))
Can't find anything about how to make the > (bigger than) and < (smaller then) things.


Re: 'Bigger than' problem - Mike_Peterson - 17.12.2012

https://sampwiki.blast.hk/wiki/Control_Structures#Operators

btw its:
pawn Код:
if(PlayerInfo[playerid][pBank] > 1000)



Re: 'Bigger than' problem - park4bmx - 17.12.2012

pawn Код:
if(PlayerInfo[playerid][pBank] > 1000 && PlayerInfo[playerid][pBank] < 2000)
Meaning: if its bigger then 1001 and smaller then 1999