30.06.2012, 01:27
Hello, I've searched a-bit about why my kick/ban logs don't make a new line. it just stack up all the bans/kicks on one line untill it's to much then it take a new one.
This is my function for ban/kick log:
Thanks for all answers
This is my function for ban/kick log:
Код:
stock KickLog(string[]){ new entry[128], day,month,year,second,minute,hour; gettime(hour, minute, second); getdate(year, month, day); format(entry, sizeof(entry), "%i-%i-%i[%i:%i:%i]%s \n",year, month, day, hour, minute, second, string); new File:hFile = fopen("/LOGS/kicks.log", io_append); fwrite(hFile, entry); fclose(hFile); }