[Ajuda] Dialogo bugado
#10

Teste novamente:
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;
    }
Reply


Messages In This Thread
Dialogo bugado - by SukMathcuck - 13.07.2015, 16:43
Re: Dialogo bugado - by zSuYaNw - 13.07.2015, 17:28
Re: Dialogo bugado - by SukMathcuck - 13.07.2015, 17:51
Re: Dialogo bugado - by humildadeforever - 13.07.2015, 18:10
Re: Dialogo bugado - by SukMathcuck - 13.07.2015, 18:25
Re: Dialogo bugado - by zSuYaNw - 13.07.2015, 19:01
Re: Dialogo bugado - by SukMathcuck - 13.07.2015, 19:04
Re: Dialogo bugado - by zSuYaNw - 13.07.2015, 19:08
Re: Dialogo bugado - by SukMathcuck - 13.07.2015, 19:27
Re: Dialogo bugado - by zSuYaNw - 13.07.2015, 19:43

Forum Jump:


Users browsing this thread: 2 Guest(s)