[Ajuda] Comandos desligando o console Sscanf
#6

Quote:
Originally Posted by NWDMadara
Посмотреть сообщение
Crie-os manualmente ou substitua o cуdigo por isso:

PHP код:
WriteLog(const file[], string[], maxlength sizeof(string))
{
    if(!
fexist(file))
    {
        new 
FilelogFile fopen(fileio_write);
                
fclose(logFile);
      }
 
    new 
stringLog[600], FilelogFile fopen(fileio_append);
 
    
format(stringLogmaxlength 27"[ %s бs %s ] %s\r\n"gData(), gHora(), string);
 
    
fwrite(logFilestringLog);
    
fclose(logFile);
    return 
1;


Estou usando essa stock para criaзгo deles

Код:
stock ServLogs(log[], string[])
{
	new entry[256], strlog[128],
	dia, mes, ano, hour, minuto, segundo;

	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);
	return 0;
}
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)