SA-MP Forums Archive
help .. - 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: help .. (/showthread.php?tid=592835)



help .. - itachi - 30.10.2015

Код:
if(y % 100 !=0 or y % 400 == 0) Luna[2] = 29;
Quote:

error :
error 001: expected token: ")", but found "-identifier-"
error 017: undefined symbol "or"
error 001: expected token: ";", but found ")"
fatal error 107: too many error messages on one line




Re: help .. - Sawalha - 30.10.2015

there's no operator in pawn called "or"
it's || for "or"
so it will be
Код:
if(y % 100 != 0 || y % 400 == 0) Luna[2] = 29;