02.06.2010, 16:09
NVM!
Thanks Infinity ![Smiley](images/smilies/smile.png)
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:
![Cheesy](images/smilies/biggrin.png)
![Smiley](images/smilies/smile.png)
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));
}