09.10.2013, 18:29
Okay, then check if the file opens correctly and then write to it.
An example:
An example:
pawn Код:
new
File: log_file = fopen( "logs/radio.log", io_append )
;
if( log_file ) // it opened correctly, now you can write to it. Othewise you try to write to a closed file which cause problems
{
fwrite( log_file, "some logs here" );
fclose( log_file );
}