[HELP]ZCMD, I guess.
#4

Don't you need params?
Код:
COMMAND:admins(playerid, params[])
{
    new string[64];
    new name[MAX_PLAYER_NAME];

    for(new i; i < MAX_PLAYERS+1; i++)
    {
        if(PlayerInfo[i][isAdmin] == 1)
        {
            GetPlayerName(i, name, sizeof(name));
            format(string, sizeof(string), "%d LVL ADMIN: %s", PlayerInfo[i][AdminLvl], name);
            SendClientMessage(playerid, COLOR_YELLOW, string);
        }
    }
                             <---- Insert 1 row here
    return 1;
}
If you get a warning about "symbol is never used - params", put #pragma unused params somewhere above the loop.

Hope this helps
Reply


Messages In This Thread
[HELP]ZCMD, I guess. - by Dirkon - 07.12.2011, 20:37
Re: [HELP]ZCMD, I guess. - by MdeRooy - 07.12.2011, 20:39
Re: [HELP]ZCMD, I guess. - by Dirkon - 07.12.2011, 20:41
Re: [HELP]ZCMD, I guess. - by AstonDA-G - 07.12.2011, 20:43
Re: [HELP]ZCMD, I guess. - by Dirkon - 07.12.2011, 20:46
Re: [HELP]ZCMD, I guess. - by AstonDA-G - 07.12.2011, 20:48
Re: [HELP]ZCMD, I guess. - by [Diablo] - 07.12.2011, 20:49
Re: [HELP]ZCMD, I guess. - by xMichaelx - 07.12.2011, 20:51

Forum Jump:


Users browsing this thread: 1 Guest(s)