Y_ini loading file question
#1

Hello guys, is possible to make loading of player files using function INI_Load, not with INI_ParseFile? Example:

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;
}
Thanks.
Reply


Messages In This Thread
Y_ini loading file question - by Riwerry - 08.01.2014, 19:32
Re: Y_ini loading file question - by Konstantinos - 08.01.2014, 19:41
Re: Y_ini loading file question - by Riwerry - 08.01.2014, 19:46
Re: Y_ini loading file question - by Konstantinos - 08.01.2014, 19:47
Re: Y_ini loading file question - by Riwerry - 08.01.2014, 19:53
Re: Y_ini loading file question - by Konstantinos - 08.01.2014, 20:00
Re: Y_ini loading file question - by Riwerry - 08.01.2014, 20:04

Forum Jump:


Users browsing this thread: 7 Guest(s)