Save player stats
#1

Код:
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 File, 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);
	 }
}
This is what i have but i keep getting errors of tag mismatch anyone see how i can fix this so i can test if it actually works?

It is my attempt at setting an autosave system to save players stats
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: 1 Guest(s)