Tenta assim:
Código:
if(dialogid == 598)
{
if(!response)
{
return 1;
}
if(listitem == 0)
{
new lol = 1;
MEGAString[0]=EOS;
format(string, sizeof(string), "Vendedor\tStatus\tMoedas\tPreço\n");
strcat(MEGAString, string);
while (lol < MAX_PLAYERS)
{
new arquivo[64];
format(arquivo, sizeof(arquivo), Pasta_Anuncio,lol);
if(DOF2_FileExists(arquivo))
{
new NomeAnuncio[MAX_PLAYER_NAME];
strmid(NomeAnuncio, DOF2_GetString(arquivo,"Jogador"), 0, strlen(DOF2_GetString(arquivo,"Jogador")), 255);
DOF2_CreateFile(arquivo);
format(string, sizeof(string), "» %s\t%s\t{33ff00}£{FFFFFF}%d\t{33ff00}R${FFFFFF}%s\n", NomeAnuncio,getOnline(NomeAnuncio), DOF2_GetInt(arquivo, "Moedas"), ConvertMoney(DOF2_GetInt(arquivo, "Preco")));
strcat(MEGAString, string);
}
lol++;
}
ShowPlayerDialog(playerid, 567, DIALOG_STYLE_TABLIST_HEADERS, "» Anúncio De Moedas", MEGAString, "Comprar","Voltar");
return 1;
}
![[Imagem: 2111370.png]](https://cdn-icons-png.flaticon.com/512/2111/2111370.png)