02.04.2016, 14:41
I suck at Y_Ini but try this
What Y_INI version do you use?
pawn Код:
forward loadaccount_user(playerid, name[], value[]);
public loadaccount_user(playerid, name[], value[])
{
new INI:file = INI_Open(Path(id));
if(file == INI_NO_FILE) print("playerfile not accessible");
format(pInfo[playerid][Pass], 129, "%s", INI_String(file, "Password"));
format(pInfo[playerid][Breason], 300, "%s", INI_String(file, "Breason"));
pInfo[playerid][Money] = INI_Int(file, "Money");
pInfo[playerid][Scores] = INI_Int(file, "Scores",);
pInfo[playerid][Kills] = INI_Int(file, "Kills",);
pInfo[playerid][Deaths] = INI_Int(file, "Deaths",);
pInfo[playerid][Admin] = INI_Int(file, "AdminLvl",);
pInfo[playerid][Banned] = INI_Int(file, "Banned",);
return 1;
}