26.06.2014, 14:16
Uhm, lol, no, it isn't.
level[playerid]=1; will always set the level to 1, which you should already know.
This will work:
If it still doesn't work the way you want it to, please emphasize on what doesn't work, so we know what to fix!
level[playerid]=1; will always set the level to 1, which you should already know.
This will work:
pawn Код:
CMD:buylevel(playerid, params[])
{
if(PlayerInfo[playerid][pRP] >= 50)
{
GivePlayerMoney(playerid, -200);
level[playerid] += 1;
PlayerInfo[playerid][pRP] -= 50;
}
return 1;
}


