On server closing or opening the server_log.txt get auto reset?
#6

Or just clear the log at "OnGameModeInit" by using the io_write method
https://sampwiki.blast.hk/wiki/Fopen
Код:
public OnGameModeInit()
{
    new File:log = fopen("YourlogFile.txt", io_write);
    fwrite(log, "---- Log File Cleared ----");  //you can leave this out if you want
    fclose(log);
    //rest of your cdode
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)