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

Quote:
Originally Posted by RaFsTar
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;
}
That doesn't help at all, that has stuff I don't even need, looks like you just coppied and pasted from somewhere :S
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)