SA-MP Forums Archive
[Ajuda] Problema no comando /admins - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Problema no comando /admins (/showthread.php?tid=377552)



Problema no comando /admins - Lord_Style - 14.09.2012

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;
}



Re: Problema no comando /admins - Lord_Style - 14.09.2012

Resolvido!


Re: Problema no comando /admins - FenixBorn - 14.09.2012

foi rapido,,haha