zcmd - command log write to other file
#5

Well, as i said i doing this formating on the zcmd include.
i testing a format i made by yours, will inform if its work

Код:
    new commands[MAX_STRING]="Logs/CMD_LOG.txt";
	new File:myfile=fopen(commands,io_write);
	new timestring[MAX_STRING];
	new hour,minu,seco,giorno,mese,anno;
	gettime(hour,minu,seco); getdate(anno,mese,giorno);
	format(timestring,sizeof(timestring),"[%d:%d:%d/%d-%d-%d]%s\n",hour,minu,seco,giorno,mese,anno,string);
	fwrite(myfile,timestring);
	fclose(myfile);
Reply


Messages In This Thread
zcmd - command log write to other file - by Camorra - 19.03.2015, 08:55
AW: zcmd - command log write to other file - by Kaliber - 19.03.2015, 09:04
Re: zcmd - command log write to other file - by Camorra - 19.03.2015, 09:26
AW: Re: zcmd - command log write to other file - by Kaliber - 19.03.2015, 09:28
Re: zcmd - command log write to other file - by Camorra - 19.03.2015, 09:31
AW: Re: zcmd - command log write to other file - by Kaliber - 19.03.2015, 09:52
Re: zcmd - command log write to other file - by Camorra - 19.03.2015, 10:13

Forum Jump:


Users browsing this thread: 2 Guest(s)