[Ajuda] Problema no comando /admins
#1

Problema:

O problema й o seguinte, ao digitar /admins, aparece "Unknow Command", sendo que o comando existe, abaixo esta o cуdigo que eu fiz!

Cуdigo:

pawn Код:
CMD:admins(playerid)
{
    new Nome[24],string[80];
    GetPlayerName(playerid,Nome,sizeof(Nome));
    SendClientMessage(playerid, 0xE60000FF, "Administrador Online:");
    for(new i = 0; i <= MAX_PLAYERS; i++)
    {
        if(Player[i][pAdmin] == 1)
        {
            format(string,sizeof(string),"Admin: %s [Moderador]",Nome);
            SendClientMessage(playerid,-1,string);
        }
        else if(Player[i][pAdmin] == 2)
        {
            format(string,sizeof(string),"Admin: %s [Administrador]",Nome);
            SendClientMessage(playerid,-1,string);
        }
        else if(Player[i][pAdmin] == 3)
        {
            format(string,sizeof(string),"Admin: %s [Master]",Nome);
            SendClientMessage(playerid,-1,string);
        }
        else if(Player[i][pAdmin] == 4)
        {
            format(string,sizeof(string),"Admin: %s [Sub Dono]",Nome);
            SendClientMessage(playerid,-1,string);
        }
        else if(Player[i][pAdmin] == 5)
        {
            format(string,sizeof(string),"Admin: %s [Dono]",Nome);
            SendClientMessage(playerid,-1,string);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Problema no comando /admins - by Lord_Style - 14.09.2012, 19:35
Re: Problema no comando /admins - by Lord_Style - 14.09.2012, 19:59
Re: Problema no comando /admins - by FenixBorn - 14.09.2012, 20:05

Forum Jump:


Users browsing this thread: 1 Guest(s)