[Tutorial] . txt file Dialog. That is, how to use the Dialog. Txt with.
#7

How to next list ?




Code:
#include <a_samp>
#include <zcmd>
 
CMD:help(playerid) {
        new output[2048], line[512];
        output[0] = EOS;
        new File:tmp=fopen("commands/help.txt");
        if(tmp) {
            while(fread(tmp, line, 512)) strins(output, line, strlen(output), sizeof(output));
            fclose(tmp);
        }
        ShowPlayerDialog(playerid, DIALOG_NONE, DIALOG_STYLE_MSGBOX, "{FFFFFF}Help", output, "Ok", "[x]");
        return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)