How can i create experience point system in y_ini
#7

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
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 7 Guest(s)