SA-MP Forums Archive
fread - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: fread (/showthread.php?tid=207606)



fread - legodude - 06.01.2011

i used fread in this way
Код:
new File:filehandle;
filehandle = fopen(filename,io_read);
new contents[1024];
fread(filehandle,contents);
fclose(filehandle);
ShowPlayerDialog(playerid,DIALOG_OVERVIEW_SCRIPT,DIALOG_STYLE_LIST,filename,contents,"Edit","Close");
but it only displays the first line in the file...
how to make it so it displays all