[HELP] fclose crashes server - 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: [HELP] fclose crashes server (
/showthread.php?tid=94702)
[HELP] fclose crashes server -
arnutisz - 31.08.2009
Why this code crashes server?
pawn Код:
new string[50];
format(string, 128, "%s.txt", strlen(params));
if(!fexist(string))
{
new File:newf = fopen(string, io_write);
fclose(newf);
}
I debugged it, it crashes in line "fclose(newf);".
Re: [HELP] fclose crashes server -
James_Alex - 31.08.2009
cuz you have to remove the
so it will be
if(fexist...
Re: [HELP] fclose crashes server -
arnutisz - 31.08.2009
I have to remove what?