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: OR (||) (
/showthread.php?tid=87110)
OR (||) -
dafel2 - 18.07.2009
Код:
if(strfind(Nick, "revenngeR", true) != -1) || (strfind(Nick, "revenngeR2", true) != -1) {
Код:
error 029: invalid expression, assumed zero
error 029: invalid expression, assumed zero
where is the problem?
Re: OR (||) -
refshal - 18.07.2009
pawn Код:
if(strfind(Nick, "revenngeR", true) !== -1) || (strfind(Nick, "revenngeR2", true) !== -1)
You have to use 2x "=".
Re: OR (||) -
Weirdosport - 18.07.2009
Quote:
Originally Posted by еddy
pawn Код:
if(strfind(Nick, "revenngeR", true) !== -1) || (strfind(Nick, "revenngeR2", true) !== -1)
You have to use 2x "=".
|
No you don't..
https://sampwiki.blast.hk/wiki/Keywords:Statements#if
Re: OR (||) -
M4S7ERMIND - 18.07.2009
pawn Код:
if(strfind(Nick, "revenngeR", true) != -1 || strfind(Nick, "revenngeR2", true) != -1)
Re: OR (||) -
refshal - 18.07.2009
Quote:
Originally Posted by Weirdosport
|
Shit, I forgot about that...