How to check if a player has items
#6

Quote:
Originally Posted by Torran
Is there a way to check if all the items in enum Items are 0?
i think it works with something like this, but not sure

for (new i; i<2; i++){
if(PlayerInfo[playerid][i == 1){ //do something } else SendClientMassage(...);
}

but he will do the if twice... so its better u use

if(PlayerInfo[playerid][Medikit]==1 && PlayerInfo[playerid][Armour]==1){ //do something } else SendClientMassage(...);
Reply


Messages In This Thread
How to check if a player has items - by Torran - 25.02.2010, 19:23
Re: How to check if a player has items - by BlackFoX - 25.02.2010, 19:25
Re: How to check if a player has items - by Torran - 25.02.2010, 19:27
Re: How to check if a player has items - by Carlito - 25.02.2010, 19:40
Re: How to check if a player has items - by Torran - 25.02.2010, 19:41
Re: How to check if a player has items - by Carlito - 25.02.2010, 19:50

Forum Jump:


Users browsing this thread: 1 Guest(s)