Help with control structure '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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with control structure 'OR' - || (
/showthread.php?tid=117069)
Help with control structure 'OR' - || -
pagie1111 - 31.12.2009
I am trying to make a weapons system with strcmp and zcmd. I have run into a problem with the SMG(MP5)
I want to make it possible to use smg and mp5. But cant work out the control structure.
pawn Код:
if(strcmp(weaponname, "smg", true) == 0) || if(strcmp(weaponname, "mp5", true) == 0)
Thanks.
Re: Help with control structure 'OR' - || -
mansonh - 31.12.2009
Код:
if(strcmp(weaponname, "smg", true) == 0 || strcmp(weaponname, "mp5", true) == 0)
?