New errors that ive never seen before
#1

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.
Reply
#2

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

Oh ok i fixed now:

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


Forum Jump:


Users browsing this thread: 2 Guest(s)