08.01.2014, 19:32
Hello guys, is possible to make loading of player files using function INI_Load, not with INI_ParseFile? Example:
Thanks.
pawn Код:
new
LoadingUsers[] = UserFile(playerid);
INI_Load(LoadingUsers); //This should be located in my logging in
INI:LoadingUsers[Informations](name[], value[])
{
INI_Int("AdminLevel", PlayerInformations[playerid][AdminLevel]);
//Other loading stuff here
}
stock UserFile(playerid)
{
new string[30], PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "%s.ini", PlayerName);
return string;
}