13.07.2015, 19:43
Teste novamente:
Fale oque aparece no console apуs digitar o comando.
Fale oque aparece no console apуs digitar o comando.
pawn Код:
if(!strcmp(cmdtext, "/admins", true)){
static
bool: Working,
dialog[667],
str[100]
;
Working = false;
dialog[0] = EOS;
str[0] = EOS;
for(new i, e = GetPlayerPoolSize(); i != e; ++i){ printf("DEBUG LVL: %d", AccountData[i][pAdmin]);
if(AccountData[i][pAdmin] >= 0){ // AccountData[playerid][pAdmin]
format(str, 100, "%s [%d]: %s [%s]\n", !AccountData[i][pAdmin] ? ("Moderador") : ("Admin"), AccountData[i][pAdmDuty] ? ("Trabalhando") : ("Jogando"), AccountData[i][pAdmin], GetPlayerNameRP(i));
strcat(dialog, str);
Working = true;
}
}
if(!Working){
format(dialog, sizeof(dialog), "Nгo hб nenhum admin/moderador online");
}
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "Administraзгo", dialog, "Fechar", "");
return true;
}