How to remove warning 211 ?
#1

PHP код:
if(PlayerInfo[playerid][pGift] = 1) return SendClientMessage(playeridCOLOR_GREY"You have already claimed your gift, try again after the next paycheck."); 
PHP код:
warning 211possibly unintended assignment 
Reply
#2

pawn Код:
if(PlayerInfo[playerid][pGift] = 1)
Should be
pawn Код:
if(PlayerInfo[playerid][pGift] == 1)
Reply
#3

^ EDIT: Lmfao, got beaten to it xD ^

pawn Код:
if(PlayerInfo[playerid][pGift] = 1)
Should be

pawn Код:
if(PlayerInfo[playerid][pGift] == 1)
Reply
#4

PHP код:
if(PlayerInfo[playerid][pGift] = 1
Change to:
PHP код:
if(PlayerInfo[playerid][pGift] == 1
Reply
#5

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)