Ban system- help.
#10

I suck at Y_Ini but try this
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;
}
What Y_INI version do you use?
Reply


Messages In This Thread
Ban system- help. - by ZToPMaN - 31.03.2016, 22:45
Re: Ban system- help. - by ZToPMaN - 01.04.2016, 01:32
Re: Ban system- help. - by itsCody - 01.04.2016, 01:36
Re: Ban system- help. - by ZToPMaN - 01.04.2016, 01:46
Re: Ban system- help. - by itsCody - 01.04.2016, 01:48
Re: Ban system- help. - by ZToPMaN - 01.04.2016, 01:50
Re: Ban system- help. - by ZToPMaN - 02.04.2016, 10:42
Re: Ban system- help. - by introzen - 02.04.2016, 12:04
Re: Ban system- help. - by ZToPMaN - 02.04.2016, 14:18
Re: Ban system- help. - by introzen - 02.04.2016, 14:41

Forum Jump:


Users browsing this thread: 3 Guest(s)