Or? - 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: Or? (
/showthread.php?tid=306734)
Or? -
rubygta - 27.12.2011
Hey, this is a quick question.. I've been searching a little bit, and can't find anything clear.
I know what the "and" symbol is.
So instead of saying for example..
pawn Код:
if(PlayerInfo[playerid][pFaction] &&(AND) PlayerInfo[playerid][pStatus] == 1
< example
I want to say
pawn Код:
if(PlayerInfo[playerid][pFaction] OR(symbol?) PlayerInfo[playerid][pStatus] == 1
< how do I tell pawno that, for example: The command will work if either pFaction equals 1, though it's okay if pStatus is equal to 1?
If it matters, I'm using ZCMD.
Respuesta: Or? -
kirk - 27.12.2011
Or symbol?
||
Thats.