02.06.2010, 08:18
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:
Thx to all who help me
Helpful topic: http://forum.sa-mp.com/index.php?top...563#msg1021563
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