This function is crashing my server
#6

Show us this whole function. Probably it's something like
pawn Код:
new File:file = fopen("blah.txt", io_read),
 // (...)
return (fwrite(file, str), fclose(file));
while you should check the handle:
pawn Код:
new File:file = fopen("blah.txt", io_read),
if(!file) {
    return false; //or something
}
 // (...)
return (fwrite(file, str), fclose(file));
Reply


Messages In This Thread
This function is crashing my server - by Luke_James - 05.08.2017, 23:24
Re: This function is crashing my server - by OneDay - 05.08.2017, 23:29
Re: This function is crashing my server - by Luke_James - 05.08.2017, 23:52
Re: This function is crashing my server - by Misiur - 06.08.2017, 00:07
Re: This function is crashing my server - by Luke_James - 06.08.2017, 00:26
Re: This function is crashing my server - by Misiur - 06.08.2017, 07:15
Re: This function is crashing my server - by Luke_James - 06.08.2017, 12:47

Forum Jump:


Users browsing this thread: 1 Guest(s)