Help with dini
#3

I made this command. Is this right?
pawn Код:
CMD:oadmin(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin]< 100001) return SendClientMessage(playerid, COLOR_GREY, " You are not authorized to use this command!");
    foreach(Player, i)
    {
        for(new i = 0; i < MAX_PLAYER_NAME; i++)
        {
            format(string, sizeof(string), "users/%s.ini", i);
            new alevel = dini_Int(string, "AdminLvl");
            new las = dini_Int(string, "LastLogin");
            if(alevel > 0)
            {
                format(string, sizeof(string), " Name- %s Level- %s LastLogin- %s", i, alevel, las);
                SendClientMessage(playerid, COLOR_WHITE, string);
                return 1;
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Help with dini - by krytans - 12.09.2014, 04:49
Re: Help with dini - by ]Rafaellos[ - 12.09.2014, 05:00
Re: Help with dini - by krytans - 12.09.2014, 05:05
Re: Help with dini - by Stinged - 12.09.2014, 07:18

Forum Jump:


Users browsing this thread: 1 Guest(s)