PlayerInfo[playerid][level]
#1

if i do that when a player kill someone this will happen:
Code:
PlayerInfo[killerid][level] += 1;
and then... i want to check if the player level is 10... so i do:
Code:
if(PlayerInfo[killerid][level] == 10)
{
...
...
...
}
so my question is... will it check the killerid level after he killed someone (when he got +1) or before?
Reply
#2

Depends on placing of the code. Add the check before you +1 the level.
Code:
if(PlayerInfo[killerid][level] == 10)
{
...
...
...
}
PlayerInfo[killerid][level] += 1;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)