[SOLVED]for loop statement - unknown command [zcmd]
#1

Hello!
I got a problem. I'm trying to do an /admins command using zcmd. It always prints online admins and then "Unknown command".
I'm not sure why there is "Unknown command." message, but when I used strcmp that command worked fine.

pawn Код:
command(admins, playerid, params[])
{
    new adminName[MAX_PLAYER_NAME], string[128];
    SendClientMessage(playerid, COLOR_WHITE, "Administrators Online:");
   
    for(new i = 0; i <= MAX_PLAYERS; i ++)
    {
        if(IsPlayerConnected(i) && pInfo[i][pAdmin] > 0)
        {
            GetPlayerName(i, adminName, sizeof(adminName));
            format(string, sizeof(string), "%s", adminName);

            SendClientMessage(playerid, COLOR_WHITE, string);
        }
    }
    return 1;
}
Reply


Messages In This Thread
[SOLVED]for loop statement - unknown command [zcmd] - by king s dm - 03.06.2010, 21:53
Re: for loop statement - unknown command [zcmd] - by coole210 - 03.06.2010, 23:18
Re: for loop statement - unknown command [zcmd] - by Antonio [G-RP] - 03.06.2010, 23:19
Re: for loop statement - unknown command [zcmd] - by coole210 - 04.06.2010, 01:24
Re: for loop statement - unknown command [zcmd] - by zSuYaNw - 04.06.2010, 01:46
Re: for loop statement - unknown command [zcmd] - by Zeex - 04.06.2010, 04:26
Re: for loop statement - unknown command [zcmd] - by king s dm - 04.06.2010, 09:18

Forum Jump:


Users browsing this thread: 3 Guest(s)