08.11.2012, 22:14
Nice tut!
forward LoadPlayerData(playerid, name[], value[]);
public LoadPlayerData(playerid, name[], value[])
{
INI_Int("Level", PlayerInfo[playerid][Level]); //Example, if you want to load the player's level
return 1;
}
OnPlayerConnect(playerid)
{
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadPlayerData", .bExtra = true, .extra = playerid); //Add this onplayerconnect
}
return 1;
}