time log command - please help
#2

pawn Код:
kick(event[])
{
    new File:log = fopen("/Admin/Logs/commands/kick.txt", io_append);
    if (log)
    {
        new Hour, Minute, Second, szTime[11];
        gettime(Hour, Minute, Second);
        format(szTime, sizeof (szTime), "[%02d:%02d:%02d]", Hour, Minute, Second);
        fwrite(log, szTime);
        fwrite(log, event);
        fwrite(log, "\r\n");
        fclose(log);
    }
}
Reply


Messages In This Thread
time log command - please help - by Miladajir - 14.05.2014, 16:19
Re: time log command - please help - by Konstantinos - 14.05.2014, 16:30
Re: time log command - please help - by Miladajir - 14.05.2014, 16:39

Forum Jump:


Users browsing this thread: 1 Guest(s)