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

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);

    format(saver,sizeof(saver),"Password");
     dini_Set(player,saver,PlayerData[playerid][Pass]);
 
     PlayerData[playerid][Job]=GetPlayerMoney(playerid);
    format(saver,sizeof(saver),"Money");
    dini_IntSet(player,saver,PlayerData[playerid][Money]);
   
    return 1;
}
This is my saving system, hust change it as u need !
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: 2 Guest(s)