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