[Ajuda] /admins em Dialog
#5

Quote:
Originally Posted by rjjj
Посмотреть сообщение
Aqui estб o seu comando em dialog :


pawn Код:
if(!strcmp(cmdtext, "/admins", true))
    {
        new Count;
        new const Ranks[][] =
        {
            "Helper",
            "Moderador",
            "Geral",
            "Master",
            "Dono"
        };
        new STR[1400];
        for(new x = 0, y = GetMaxPlayers(); x != y; x++)
        {
            if(!IsPlayerConnected(x)) continue;
            if(admin[x])
            {
                new NickName[25];
                GetPlayerName(x, NickName, 25);
                if(pAdmin[x] >= 1 && pAdmin[x] <= 5)
                {
                    format(STR, 1400, "%s%s (%d) » Administrador [%s]\n", STR, NickName, x, Ranks[pAdmin[x] - 1]);
                }
                Count++;
            }
        }
        Count || strcat(STR, "Nenhum administrador online.\n");
        ShowPlayerDialog(playerid, 500, DIALOG_STYLE_MSGBOX, "Administradores Online", STR, "Fechar", "");
        return 1;
    }


Espero ter ajudado .
Muito obrigado, seu cуdigo deu certo aqui, mas ficou com o seguinte warning: warning 219: local variable "Count" shadows a variable at a preceding level

Pode dizer como tiro
Reply


Messages In This Thread
/admins em Dialog - by Hauo - 17.08.2012, 17:00
Re: /admins em Dialog - by s4kuL - 17.08.2012, 17:13
Re: /admins em Dialog - by mau.tito - 17.08.2012, 17:17
Re: /admins em Dialog - by rjjj - 17.08.2012, 17:38
Re: /admins em Dialog - by Hauo - 17.08.2012, 17:51
Re: /admins em Dialog - by Maklister - 17.08.2012, 17:55
Re: /admins em Dialog - by Hauo - 17.08.2012, 17:57
Re: /admins em Dialog - by Maklister - 17.08.2012, 18:00

Forum Jump:


Users browsing this thread: 1 Guest(s)