How can i create experience point system in y_ini
#5

Quote:
Originally Posted by Mattakil
Посмотреть сообщение
Simple...
pawn Код:
stock GiveExperienceToPlayer(playerid, value)
    {
    PlayerInfo[playerid][pExp] = value //change that to match your enum
    return 1;
    }
Then use Y_INI to save it as normal, in the thread that Cali posted
but it will not + experience value::
like when u use GiveExperienceToPlayer(playerid, 20);
u see in ur user.ini file it will show u
Experience = 20
n if you again use giveexperience...(playerid, 20);
it will show u in ur user.ini
Experience = 20
coz it will set the value of experience not add the value of experience previous value to new value ... N it is the main problem .. I want that next time it show me ..
Experience = 40 instead of 20
n i don't know how to do this..
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)