07.09.2009, 01:09
Try to use this:
pawn Код:
forward SaveData(playerid);
public SaveData(playerid)
{
new player[128];new saver[128];
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
format(player, sizeof(player), "users/%s.txt",pname); // Saving folder
PlayerInfo[playerid][Money]=GetPlayerMoney(playerid); //Gets player money
format(saver,sizeof(saver),"Money");
dini_IntSet(player,saver,PlayerInfo[playerid][Money]); // Saves it into users/Player.txt as "Money".
return 1;
}