Having problem with if - 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: Having problem with if (
/showthread.php?tid=633205)
Having problem with if -
akib - 27.04.2017
Hi how can i add 2 statement in 1 if
example
Код:
if(IsPlayerAdmin(playerid) or (pAdmin[playerid] == 3) )
{
}
Re: Having problem with if -
Hansrutger - 27.04.2017
Use the "||" operator for "OR" and "&&" operator for "AND".
Check
https://sampwiki.blast.hk/wiki/Control_Structures#Operators for more information.
Re: Having problem with if -
Kane - 27.04.2017
Код:
if(IsPlayerAdmin(playerid) || pAdmin[playerid] == 3)