SA-MP Forums Archive
New errors that ive never seen before - 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: New errors that ive never seen before (/showthread.php?tid=131281)



New errors that ive never seen before - Torran - 02.03.2010

pawn Код:
if(JustConnected[playerid] == 1 && AccountInfo[playerid][Gender] = 1 || AccountInfo[playerid][Gender] = 2 && AccountInfo[playerid][City] = 1 || AccountInfo[playerid][City] = 2 || AccountInfo[playerid][City] = 3)
Код:
C:\Users\Torran\Desktop\SA-MP\gamemodes\gamemode.pwn(418) : warning 211: possibly unintended assignment
C:\Users\Torran\Desktop\SA-MP\gamemodes\gamemode.pwn(418) : error 022: must be lvalue (non-constant)
C:\Users\Torran\Desktop\SA-MP\gamemodes\gamemode.pwn(418) : error 022: must be lvalue (non-constant)
C:\Users\Torran\Desktop\SA-MP\gamemodes\gamemode.pwn(418) : error 022: must be lvalue (non-constant)
C:\Users\Torran\Desktop\SA-MP\gamemodes\gamemode.pwn(418) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: New errors that ive never seen before - Calgon - 02.03.2010

You can only use two equal operators in if statements, NEVER one.


Re: New errors that ive never seen before - Torran - 02.03.2010

Oh ok i fixed now:

pawn Код:
if(JustConnected[playerid] == 1 && AccountInfo[playerid][Gender] != 0 && AccountInfo[playerid][City] != 0)