26.02.2016, 12:29
As the answer title, is possible to make a function every time that the server closes or opens the server_log.txt get cleared automatically, to avoid logs lag?
Regards.
Regards.
@echo off
del server_log.txt /q
samp-server.exe
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; }