SA-MP Forums Archive
: error 022: must be lvalue (non-constant) - 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: : error 022: must be lvalue (non-constant) (/showthread.php?tid=245929)



: error 022: must be lvalue (non-constant) - kickflipdude - 02.04.2011

I try to compile my script, i get this error:

C:\Users\Anoop\Desktop\samp03csvr_R2-2_win32\gamemodes\Server.pwn(186 : error 022: must be lvalue (non-constant)
C:\Users\Anoop\Desktop\samp03csvr_R2-2_win32\gamemodes\Server.pwn(186 : warning 215: expression has no effect

Line 1868:
pawn Code:
Civilian[playerid] && Cop[playerid] = 1;



Re: : error 022: must be lvalue (non-constant) - coole210 - 02.04.2011

Code:
Civilian[playerid] = 1;Cop[playerid] = 1;
try that.


Re: : error 022: must be lvalue (non-constant) - kickflipdude - 02.04.2011

Tyvm, you pwn.