server crash (mysql problem??)
#7

saves in an external log:P... I'm using it because the server_logs is fucked up with admin chat, radio, etc..
pawn Код:
public Log(log[])
{
    new day, year, month, hour, minute, second, string[300];
    getdate(year, month, day);
    gettime(hour, minute, second);
    if(!fexist("Logs/Log.txt"))
    {
        new File:fi = fopen("Logs/Log.txt", io_write);
        fclose(fi);
    }
    format(string, sizeof(string), "[%d/%d/%d - %d:%d.%d]%s\r\n", day, month, year, hour, minute, second, log);
    new File:fi = fopen("Logs/Log.txt", io_append);
    fwrite(fi, string);
    fclose(fi);
    return 1;
}
Reply


Messages In This Thread
server crash (mysql problem??) - by Sascha - 17.02.2011, 10:30
Re: server crash (mysql problem??) - by SmugglesJr - 17.02.2011, 10:35
Re: server crash (mysql problem??) - by Sascha - 17.02.2011, 10:35
Re: server crash (mysql problem??) - by SmugglesJr - 17.02.2011, 10:36
Re: server crash (mysql problem??) - by Sascha - 17.02.2011, 10:38
Re: server crash (mysql problem??) - by Cameltoe - 17.02.2011, 10:44
Re: server crash (mysql problem??) - by Sascha - 17.02.2011, 10:49
Re: server crash (mysql problem??) - by Haydz - 17.02.2011, 10:50
Re: server crash (mysql problem??) - by Sascha - 17.02.2011, 10:55
Re: server crash (mysql problem??) - by Cameltoe - 17.02.2011, 11:26

Forum Jump:


Users browsing this thread: 1 Guest(s)