Save player stats
#2

Код:
forward Save_PlayerInfo();
public Save_PlayerInfo() //Saves all the garages, changed to a public because of the autosave timer
{
	new playerid;
    if(Logged[playerid] == true)
    {
			    new path[64];
			    format(path,sizeof(path),"/Players/%d.ini");
		     	new INI:File = INI_Open(path);
				INI_WriteInt(File, "Admin", PlayerInfo[playerid][pAdmin]);
	  		  	INI_WriteInt(File, "Level", PlayerInfo[playerid][pLevel]);
	    		INI_WriteInt(File, "Skin", GetPlayerSkin(playerid));
				INI_WriteInt(File, "Registered", PlayerInfo[playerid][Registered]);
				INI_WriteInt(File, "HandMoney", GetPlayerMoney(playerid));
				INI_Close(File);
	 }
}
Reply


Messages In This Thread
Save player stats - by CSLangdale - 31.05.2016, 15:42
Re: Save player stats - by ilijap - 31.05.2016, 15:47
Re: Save player stats - by Konstantinos - 31.05.2016, 16:05
Re: Save player stats - by CSLangdale - 31.05.2016, 16:09
Re: Save player stats - by Konstantinos - 31.05.2016, 16:21
Re: Save player stats - by Rubey - 31.05.2016, 17:26

Forum Jump:


Users browsing this thread: 3 Guest(s)