[Ajuda] Comando esta bugado.
#4

Vocк esta mostrando o dialogo e criando uma string dentro do loop, o certo й vocк usar uma string para formatar e uma para armazenas os nomes jб formatados e fora do loop mostrar o dialogo.

Exemplo:
PHP код:
new stf[1], str[1];
//loop
    //caso for admin
    //formata uma linha
    
format(stfsizeof stf"...\n");
    
//armazena na string principal
    
strcat(strstfsizeof str);
//fim do loop

//verifica se a string str esta vazia
if(str[0] == EOS)
    
ShowPlayerDialog(playerid0DIALOG_STYLE_MSGBOX"Admins""Nenhum admin""OK""");
else
    
ShowPlayerDialog(playerid0DIALOG_STYLE_MSGBOX"Admins"str"OK"""); 
Veja as funзхes format e strcat.
Reply


Messages In This Thread
Comando esta bugado. - by MeTaLLeiRO - 15.02.2017, 22:40
Re: Comando esta bugado. - by johntrybescripter - 15.02.2017, 22:48
Re: Comando esta bugado. - by MeTaLLeiRO - 15.02.2017, 22:54
Re: Comando esta bugado. - by MultiKill - 15.02.2017, 23:00
Re: Comando esta bugado. - by MorteAmerica - 15.02.2017, 23:23
Re: Comando esta bugado. - by MeTaLLeiRO - 16.02.2017, 01:42
Re: Comando esta bugado. - by MeTaLLeiRO - 16.02.2017, 14:50
Re: Comando esta bugado. - by Injury - 16.02.2017, 22:15
Re: Comando esta bugado. - by MeTaLLeiRO - 17.02.2017, 13:06
Re: Comando esta bugado. - by Injury - 17.02.2017, 16:10

Forum Jump:


Users browsing this thread: 3 Guest(s)