Saving stats
#1

Код:
public OnPlayerDisconnect(playerid, reason)
{
    SavePlayer(playerid);
	return 1;
}
Код:
stock SavePlayer(playerid)
{
	if(GetPVarInt(playerid,"LoggedIn") == 1)
	{
		new name[24];
		GetPlayerName(playerid,name,sizeof name);
		dUserSetINT(name).("Deaths",GetPVarInt(playerid,"Deaths"));
	    dUserSetINT(name).("Kills",GetPVarInt(playerid,"Kills"));
	    dUserSetINT(name).("Money",GetPVarInt(playerid,"Money"));
	    dUserSetINT(name).("Color",GetPVarInt(playerid,"Color"));
	    dUserSetINT(name).("Level",GetPVarInt(playerid,"Level"));

		new ip[16];
		GetPVarString(playerid,"IP",ip,16);
	    dUserSet(name).("IPAddress",ip);
    }
}
Why stats dont save?
Reply


Messages In This Thread
Saving stats - by Dime - 22.09.2010, 08:28
Re: Saving stats - by Matej_ - 22.09.2010, 08:33
Re: Saving stats - by Dime - 22.09.2010, 08:36
Re: Saving stats - by willsuckformoney - 22.09.2010, 08:53
Re: Saving stats - by Dime - 22.09.2010, 08:53
Re: Saving stats - by willsuckformoney - 22.09.2010, 08:58
Re: Saving stats - by Dime - 22.09.2010, 09:18
Re: Saving stats - by Desert - 22.09.2010, 09:44
Re: Saving stats - by Dime - 22.09.2010, 09:50
Re: Saving stats - by woot - 22.09.2010, 11:15

Forum Jump:


Users browsing this thread: 3 Guest(s)