17.06.2013, 02:08
Is it possible to make fwrite... write to the top line.... or is there a another method... yep its to a .txt file
new count;
public OnGameModeInit()
{
new File:log = fopen("/ServerLog.txt", io_write); // Open the file
if(log)
{
new string[100];
count ++;
format(string, 100, ""Server Started %d", count);
fwrite(log, "Server started.\r\n"); // Write to the file (\r\n is for a new line)
fclose(log); // Close the file
}
return 1;
}