My ban/kick log won't make a new line
#1

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:

Код:
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);
}
Thanks for all answers
Reply


Messages In This Thread
My ban/kick log won't make a new line - by Ranama - 30.06.2012, 01:27
Re: My ban/kick log won't make a new line - by ReneG - 30.06.2012, 01:30
Re: My ban/kick log won't make a new line - by Ranama - 30.06.2012, 01:31
Re: My ban/kick log won't make a new line - by SnG.Scot_MisCuDI - 30.06.2012, 01:41
Re: My ban/kick log won't make a new line - by Ranama - 30.06.2012, 02:05

Forum Jump:


Users browsing this thread: 2 Guest(s)