Help with saving stats (Money and Score)
#4

Код:
public OnPlayerDisconnect(playerid, reason)
{
	new pname[MAX_PLAYER_NAME],Destination[256];
	GetPlayerName(playerid, pname, sizeof(pname));
	format(Destination,sizeof(Destination),"\\Users\\%s.ini",pname);
	if (dini_Exists(Destination) && Logged[playerid])
 	{
 		dini_IntSet(Destination,"Money", GetPlayerMoney(playerid));
 		dini_IntSet(Destination,"Score", GetPlayerScore(playerid));
 	}
	return 1;
}
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: 2 Guest(s)