[SOLVED] Again problem with saving money
#4

NVM! Thanks Infinity
Flo_White have explain me that and teh result was that I donґt save the money when I disconnect and get ingame money. All is fixed now.

For further notice the final script codes:

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{

    new name[MAX_PLAYER_NAME], PlayerFile[50];
    GetPlayerName(playerid,name,sizeof(name));
    format(PlayerFile,sizeof(PlayerFile),"/users/%s.ini",name);
    dini_IntSet(PlayerFile,"Money",GetPlayerMoney(playerid));
pawn Код:
public OnPlayerUpdate(playerid)
{
    new name[MAX_PLAYER_NAME], PlayerFile[50];
    GetPlayerName(playerid,name,sizeof(name));
    format(PlayerFile,sizeof(PlayerFile),"/users/%s.ini",name);
    dini_IntSet(PlayerFile,"Money",GetPlayerMoney(playerid));

}
Reply


Messages In This Thread
[SOLVED] Again problem with saving money - by Flashy - 02.06.2010, 15:02
Re: Again problem with saving money - by Flashy - 02.06.2010, 15:19
Re: Again problem with saving money - by Infinity - 02.06.2010, 15:52
Re: Again problem with saving money - by Flashy - 02.06.2010, 16:09

Forum Jump:


Users browsing this thread: 1 Guest(s)