Log Saving not starting new line.
#8

Check if the file handle is valid before writing to/closing the file to avoid server crashes.

pawn Код:
new File:hFile;
hFile = fopen("map.log", io_append);
if (hFile)
{
    fwrite(hFile, entry);
    fclose(hFile);
}
Do the same for the ban logs as well.
Reply


Messages In This Thread
Log Saving not starting new line. - by VerticalGaming - 10.04.2014, 10:32
Re: Log Saving not starting new line. - by Bingo - 10.04.2014, 10:34
Re: Log Saving not starting new line. - by VerticalGaming - 10.04.2014, 10:38
Re: Log Saving not starting new line. - by Bingo - 10.04.2014, 10:40
Re: Log Saving not starting new line. - by VerticalGaming - 10.04.2014, 10:43
Re: Log Saving not starting new line. - by Mario' - 10.04.2014, 10:43
Re: Log Saving not starting new line. - by Bingo - 10.04.2014, 10:45
Re: Log Saving not starting new line. - by Konstantinos - 10.04.2014, 12:50

Forum Jump:


Users browsing this thread: 1 Guest(s)