one line error - 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: one line error (
/showthread.php?tid=438025)
one line error -
Nivniv2 - 18.05.2013
error 002: only a single statement (or expression) can follow each "case"
error 022: must be lvalue (non-constant)
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
pawn Код:
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pDuty] = 1);
Re: one line error -
Nivniv2 - 18.05.2013
Forgot to say, this is the error line what i wrote up.
Re: one line error -
LilBob - 18.05.2013
Remove that : ";'
Re: one line error -
Nivniv2 - 18.05.2013
Still having the same thing.
Re: one line error -
Nivniv2 - 18.05.2013
someone?
Re: one line error -
Abhishek. - 18.05.2013
you are using any case statments there?
Re: one line error -
DeMoX - 18.05.2013
Show the full script, sometimes errors get reported on the false line.
Re: one line error -
Threshold - 18.05.2013
First of all, remove that ';'. Second of all, I cannot believe how several people failed to notice the ending of the 'if' statement...
pawn Код:
PlayerInfo[playerid][pDuty] = 1
Should be:
pawn Код:
PlayerInfo[playerid][pDuty] == 1
Re: one line error -
Nivniv2 - 18.05.2013
Quote:
Originally Posted by BenzoAMG
First of all, remove that ';'. Second of all, I cannot believe how several people failed to notice the ending of the 'if' statement...
pawn Код:
PlayerInfo[playerid][pDuty] = 1
Should be:
pawn Код:
PlayerInfo[playerid][pDuty] == 1
|
im getting now 26 errors for unknown lines..