Read a string saved with Y_ini
#5

Is this what you're looking for?

pawn Код:
new gReason[70],
    gAdmin[MAX_PLAYER_NAME];

forward LoadReason(name[], value[])
public LoadReason(name[], value[])
{
    INI_String("Reason", gReason, sizeof(gReason));
    INI_String("AdminBan", gAdmin, sizeof(gAdmin));
    return 1;
}
Usage:
pawn Код:
if(PlayerInfo[playerid][pBanned] == 1)
{
    INI_ParseFile(UserPath(playerid), "LoadReason");

    printf("Player %d is banned for %s by admin %s.", playerid, gReason, gAdmin);
}
Reply


Messages In This Thread
Read a string saved with Y_ini - by Saw® - 26.03.2013, 11:50
Re: Read a string saved with Y_ini - by Saw® - 26.03.2013, 12:02
Re: Read a string saved with Y_ini - by Saw® - 26.03.2013, 12:25
Re: Read a string saved with Y_ini - by Saw® - 26.03.2013, 12:49
Re: Read a string saved with Y_ini - by Finn - 26.03.2013, 13:48
Re: Read a string saved with Y_ini - by Saw® - 26.03.2013, 16:59

Forum Jump:


Users browsing this thread: 1 Guest(s)