SA-MP Forums Archive
some help with a code - 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: some help with a code (/showthread.php?tid=514388)



some help with a code - jimis - 21.05.2014

PHP Code:
    else if (GetPlayerWantedLevel(pId) >= 1
i have this code on one command anyway i want to make it work if player has >= 1 wanted level AND if he has <=6 wanted level, how i can code it?? thanks


Re: some help with a code - Konstantinos - 21.05.2014

So if the wanted level is between 1 and 6?
pawn Code:
else if (1 <= GetPlayerWantedLevel(pId) <= 6)



Re: some help with a code - jimis - 21.05.2014

Quote:
Originally Posted by Konstantinos
View Post
So if the wanted level is between 1 and 6?
pawn Code:
else if (1 <= GetPlayerWantedLevel(pId) <= 6)
yea thanks man!!