Update players money when they get it..?
#6

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;
}
Reply


Messages In This Thread
Update players money when they get it..? - by _Vortex - 07.09.2009, 00:44
Re: Update players money when they get it..? - by RaFsTar - 07.09.2009, 00:45
Re: Update players money when they get it..? - by _Vortex - 07.09.2009, 00:48
Re: Update players money when they get it..? - by RaFsTar - 07.09.2009, 00:50
Re: Update players money when they get it..? - by _Vortex - 07.09.2009, 01:02
Re: Update players money when they get it..? - by RaFsTar - 07.09.2009, 01:09
Re: Update players money when they get it..? - by snoob - 07.09.2009, 02:04

Forum Jump:


Users browsing this thread: 1 Guest(s)