Help with saving stats (Money and Score)
#1

Hey all. I'm working on a little adminscript and need a bit of help with it :/

So im trying to get it to save stats. Here's what i got:

Код:
public OnPlayerDisconnect(playerid, reason)
{
	new pname[MAX_PLAYER_NAME];
	new Destination[50];
	format(Destination,sizeof(Destination),"\\Users\\%s.ini",pname);
	if (Logged[playerid] == 1)
 	{
 		GetPlayerName(playerid, pname, sizeof(pname));
 		dini_IntSet(udb_encode(Destination),"Money", GetPlayerMoney(playerid));
 		dini_IntSet(udb_encode(Destination),"Score", GetPlayerScore(playerid));
 	}
	return 1;
}
That code doesn't work, The stats dont save D: Please help :P

-V3-
Reply


Messages In This Thread
Help with saving stats (Money and Score) - by V3nuZ - 23.02.2009, 17:29
Re: Help with saving stats (Money and Score) - by Rks25 - 23.02.2009, 17:39
Re: Help with saving stats (Money and Score) - by V3nuZ - 23.02.2009, 17:47
Re: Help with saving stats (Money and Score) - by Jefff - 23.02.2009, 17:51

Forum Jump:


Users browsing this thread: 4 Guest(s)