Help with loading logs in a dialog
#2

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(str, sizeof(str), "%s%s", str2, str);
    }
    fclose(bugs);
    ShowPlayerDialog(playerid, DIALOG_BUGS, DIALOG_STYLE_MSGBOX, "Bug Reports", str, "Close", "");
    return 1;
}
Try this.

I've edited the code. I haven't tested, but this may work. I'm not to sure.
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: 1 Guest(s)