12.08.2015, 07:49
Hi guys, I have a little problem with the pagination dialog. I have a file rules.txt and it got a long text, the text will not fit into dialogs as I do other pages in dialogs?
Code is O.K

Files rules.txt
Код:
#include <a_samp> #include <zcmd> CMD:help(playerid) { new output[2048], line[512]; output[0] = EOS; new File:tmp=fopen("Rules/rules.txt"); if(tmp) { while(fread(tmp, line, 512)) strins(output, line, strlen(output), sizeof(output)); fclose(tmp); } ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "aaaaa", output, "Cancel", "Next"); return 1; }

Files rules.txt
Код:
1. Rule 2. Rule 3. Rule 4. Rule 5. Rule 6. ...