must be lvalue (non-constant) problem in IF Statement.
#1

Код:
error 022: must be lvalue (non-constant)
Код:
else if(!PlayerInfo[playerid][pAdmin] >= 1 && (!PlayerInfo[playerid][pAdmin] = 2 && (!PlayerInfo[playerid][pAdmin] = 3 && (!PlayerInfo[playerid][pAdmin] = 4 && (!PlayerInfo[playerid][pAdmin] = 1337 && (!PlayerInfo[playerid][pAdmin] = 1338 && (!PlayerInfo[playerid][pAdmin] = 99999)
I ain't really good with &&, | | I knew I was gonna get errors, but not exactly sure on how to fix it..... code looked fine to me XD
Reply
#2

Код:
else if(!PlayerInfo[playerid][pAdmin] >= 1 && (!PlayerInfo[playerid][pAdmin] == 2 && (!PlayerInfo[playerid][pAdmin] == 3 && (!PlayerInfo[playerid][pAdmin] == 4 && (!PlayerInfo[playerid][pAdmin] == 1337 && (!PlayerInfo[playerid][pAdmin] == 1338 && (!PlayerInfo[playerid][pAdmin] == 99999)
Change = to ==
Reply
#3

Awe, fudge :P thank you for that ++
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)