Weird string overwriting
#10

You're right, just tested on a blank gamemode and your code worked good.
It must be something related to the creation of the dialog.
pawn Код:
COMMAND:guidatest(playerid, params[])
{
    new File: file = fopen("Guide/Guide_Main.info", io_read),
        string[64], longstring[600];
    if(file)
    {
        while(fread(file, string))
        {
            strcat(longstring, string);
            strcat(longstring, "\n");
        }
        fclose(file);
        ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "Guida", longstring, "Seleziona", "Annulla");
    }
    return 1;
}
I've tested this on the same filterscript and the commands (/test, /guidatest) printed two different results with the same dialog list.
Reply


Messages In This Thread
Weird string overwriting - by SimonItaly - 31.07.2013, 01:54
Respuesta: Weird string overwriting - by JustBored - 31.07.2013, 02:14
Re: Weird string overwriting - by SimonItaly - 31.07.2013, 02:17
Re: Weird string overwriting - by dEcooR - 31.07.2013, 06:32
Re: Weird string overwriting - by Scottas - 31.07.2013, 07:10
Re: Weird string overwriting - by SimonItaly - 31.07.2013, 16:45
Re: Weird string overwriting - by Konstantinos - 31.07.2013, 16:49
Re: Weird string overwriting - by SimonItaly - 31.07.2013, 17:25
Re: Weird string overwriting - by Konstantinos - 31.07.2013, 17:32
Re: Weird string overwriting - by SimonItaly - 31.07.2013, 17:48
Re: Weird string overwriting - by SimonItaly - 01.08.2013, 20:21
Re: Weird string overwriting - by park4bmx - 01.08.2013, 22:36

Forum Jump:


Users browsing this thread: 4 Guest(s)