Crashing
#4

Okay, then check if the file opens correctly and then write to it.

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 );
}
Reply


Messages In This Thread
Crashing - by seanny - 09.10.2013, 17:12
Re: Crashing - by Konstantinos - 09.10.2013, 17:40
Re: Crashing - by seanny - 09.10.2013, 17:44
Re: Crashing - by Konstantinos - 09.10.2013, 18:29

Forum Jump:


Users browsing this thread: 1 Guest(s)