2024-05-10, 02:29 PM
Hello, how would it be best to implement timestamp include in this situation?
Link of timestamp:
https://github.com/Agneese-Saini/SA-MP/b...estamp.inc
Thanks :)
Code:
stock CreateLog(FileName[], string[])[/color]
{
new logstring[256];
new hour, minute, second, day, month, year;
gettime(hour, minute, second);
getdate(day, month, year);
format(logstring, 256, "[%d.%d.%d - %d:%d:%d] %s\r\n", hour, minute, second, day, month, year, string);
new File:hFile;
hFile = fopen(FileName, io_append);
fwrite(hFile, logstring);
fclose(hFile);
return 1;
[color=#000000]}
Link of timestamp:
https://github.com/Agneese-Saini/SA-MP/b...estamp.inc
Thanks :)