Quote:
Originally Posted by Mattakil
OOHHHHH
Thats easy as well :P
pawn Код:
stock GiveExperienceToPlayer(playerid, value) { PlayerInfo[playerid][pExp] = +value //change that to match your enum return 1; }
If you want to add or remove, just use + or - before the value, for example, if you wanna add 2 to the persons score, just do SetPlayerScore(playerid, +2) and etc.
|
its PlayerInfo[playerid][pExp] += value;
and not
PlayerInfo[playerid][pExp] = +value