[SOLVED] Problem with /stats, Money donґt save.
#10

Update:

I fixed the problem that I can see my currently money in game.

Currently problems:

Canґt save the money I won in game automatically. How to fix that?
When I disconnect it donґt save my money. How to fix that?
When I connect there is only the money from my dini File. Example: IN my dini file is: Money=5353. Then it shows me in game I have 5353 but I won more? How to fix that?


[EDIT]

Solved by myself.

Note for further notice and for other palyer have the same problem:

Just write a public function:


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

}

Thx to all who help me

Helpful topic: http://forum.sa-mp.com/index.php?top...563#msg1021563
Reply


Messages In This Thread
[SOLVED] Problem with /stats, Money donґt save. - by Flashy - 01.06.2010, 20:09
Re: Problem with /stats, Money donґt save. - by Naxix - 01.06.2010, 20:14
Re: Problem with /stats, Money donґt save. - by Flashy - 01.06.2010, 20:21
Re: Problem with /stats, Money donґt save. - by Naxix - 01.06.2010, 20:21
Re: Problem with /stats, Money donґt save. - by Flashy - 01.06.2010, 20:45
Re: Problem with /stats, Money donґt save. - by aircombat - 01.06.2010, 20:56
Re: Problem with /stats, Money donґt save. - by Flashy - 02.06.2010, 07:18
Re: Problem with /stats, Money donґt save. - by DJDhan - 02.06.2010, 07:21
Re: Problem with /stats, Money donґt save. - by Flashy - 02.06.2010, 07:31
Re: Problem with /stats, Money donґt save. - by Flashy - 02.06.2010, 08:18

Forum Jump:


Users browsing this thread: 1 Guest(s)