Having problem with if
#1

Hi how can i add 2 statement in 1 if
example
Код:
if(IsPlayerAdmin(playerid) or (pAdmin[playerid] == 3) )
{

}
Reply
#2

Use the "||" operator for "OR" and "&&" operator for "AND".

Check https://sampwiki.blast.hk/wiki/Control_Structures#Operators for more information.
Reply
#3



Код:
if(IsPlayerAdmin(playerid) || pAdmin[playerid] == 3)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)