10.04.2014, 12:50
Check if the file handle is valid before writing to/closing the file to avoid server crashes.
Do the same for the ban logs as well.
pawn Код:
new File:hFile;
hFile = fopen("map.log", io_append);
if (hFile)
{
fwrite(hFile, entry);
fclose(hFile);
}