[Ajuda] Comandos desligando o console Sscanf
#8

Use a funзгo do NWDMadara:

Код:
stock ServLogs(log[], string[]) { 

    new entry[512], strlog[128],
    dia, mes, ano, hour, minuto, segundo;

    if(!fexist(log)) { 

        new File: logFile = fopen(log, io_write); 
        fclose(logFile); 
    } 

    getdate(ano, mes, dia);
    gettime(hour, minuto, segundo);

    format(entry, sizeof(entry), "[%02d/%02d/%02d - %02d:%02d:%02d] - %s\r\n",
    dia, mes, ano, hour, minuto, segundo, string);

    new File:hFile;
    format(strlog, sizeof strlog, Pasta_Logs, log);
    hFile = fopen(strlog, io_append);
    fwrite(hFile, entry);
    fclose(hFile);
}
Reply


Messages In This Thread
Comandos desligando o console Sscanf - by Japis - 09.02.2019, 21:45
Re: Comandos desligando o console Sscanf - by NWDMadara - 09.02.2019, 21:50
Re: Comandos desligando o console Sscanf - by Marllun - 09.02.2019, 21:58
Re: Comandos desligando o console Sscanf - by Japis - 09.02.2019, 22:03
Re: Comandos desligando o console Sscanf - by NWDMadara - 09.02.2019, 22:08
Re: Comandos desligando o console Sscanf - by Japis - 09.02.2019, 22:14
Re: Comandos desligando o console Sscanf - by NWDMadara - 09.02.2019, 22:19
Re: Comandos desligando o console Sscanf - by Marllun - 09.02.2019, 22:21
Re: Comandos desligando o console Sscanf - by Japis - 09.02.2019, 22:35
Re: Comandos desligando o console Sscanf - by DanielMatrix - 12.02.2019, 12:04

Forum Jump:


Users browsing this thread: 1 Guest(s)