Help with loading logs in a dialog
#4

pawn Код:
CMD:bugreports(playerid, params[])
{
    new str[500], str2[500];
    bugs = fopen("Reported_Bugs.txt", io_read);
    while(fread(bugs, str, sizeof str, false))
    {
        format(str2, sizeof(str2), "%s%s", str2, str);
    }
    fclose(bugs);
    ShowPlayerDialog(playerid, DIALOG_BUGS, DIALOG_STYLE_MSGBOX, "Bug Reports", str2, "Close", "");
    return 1;
}
I do apologize, try this instead. (I have edited my last reply after seeing this error).

Take note, I've edited it again.
Reply


Messages In This Thread
Help with loading logs in a dialog - by Jakwob - 12.12.2014, 14:53
Re: Help with loading logs in a dialog - by Sledgehammer - 12.12.2014, 15:06
Re: Help with loading logs in a dialog - by Jakwob - 12.12.2014, 15:11
Re: Help with loading logs in a dialog - by Sledgehammer - 12.12.2014, 15:13
Re: Help with loading logs in a dialog - by Raweresh - 12.12.2014, 15:14
Re: Help with loading logs in a dialog - by Sledgehammer - 12.12.2014, 15:17
Re: Help with loading logs in a dialog - by Raweresh - 12.12.2014, 15:21
Re: Help with loading logs in a dialog - by Jakwob - 12.12.2014, 15:25

Forum Jump:


Users browsing this thread: 2 Guest(s)