[AJUDA] Texto no Dialog
#1

Olб. Entгo, estou tentando fazer um sistema que salva um texto e depois um player digita o comando e vк todos textos salvos. Porйm sу aparece o primeiro, o resto nгo, jб tentei de vбrias formas, e nenhum funciona, sу aparece o primeiro :S
To usando mais ou menos assim (exemplo da WikiSamp):
pawn Код:
new string[64]; // Create the string to store the read text in
    new File:example = fopen("Startup.txt", io_read); // Open the file
    while(fread(example, string)) //reads the file line-by-line
    {
        if(strcmp(string, "Ban", true) == 0) //if any of the lines in the file say "Ban" the system will ban the player
        {
            Ban(playerid); //bans the player
        }
    }
    fclose(example);
Sу que nгo estou pondo pra banir, depois do while(fread... eu to pondo pra abrir um dialog.
pawn Код:
ShowPlayerDialog(playerid,1, DIALOG_STYLE_MSGBOX,"Texto", string,"Fechar","");
Nгo funciona...
Alguma luz ? Vlw =D
Reply


Messages In This Thread
[AJUDA] Texto no Dialog - by humildadeforever - 15.02.2012, 18:35
Re: [AJUDA] Texto no Dialog - by Hardware - 15.02.2012, 19:08
Re: [AJUDA] Texto no Dialog - by humildadeforever - 15.02.2012, 20:02
Re: [AJUDA] Texto no Dialog - by |_MeGaTroN_| - 15.02.2012, 21:02
Re: [AJUDA] Texto no Dialog - by Hardware - 15.02.2012, 21:45
Re: [AJUDA] Texto no Dialog - by humildadeforever - 16.02.2012, 15:37
Re: [AJUDA] Texto no Dialog - by Hardware - 16.02.2012, 16:56
Re: [AJUDA] Texto no Dialog - by humildadeforever - 16.02.2012, 17:01
Re: [AJUDA] Texto no Dialog - by |_MeGaTroN_| - 16.02.2012, 17:02
Re: [AJUDA] Texto no Dialog - by Hardware - 16.02.2012, 17:07

Forum Jump:


Users browsing this thread: 1 Guest(s)