Краш
#5

Code:
stock WriteLog(const file[],string[])
{
	new write[256],minute,second,hour,day,month,year;
	gettime(hour,minute,second);
	getdate(year,month,day);
	format(write, sizeof(write), "[Logs]/%s",file);
	new File:hFile = fopen(write, io_append);
	format(write, sizeof(write), "[%d.%02d.%02d | %02d:%02d:%02d] %s\r\n",day,month,year,hour,minute,second,string);
	for(new i; i < strlen(write); i ++) fputchar(hFile, write[i], false);
	fclose(hFile);
}
Reply


Messages In This Thread
Краш - by DeViLsS - 19.12.2014, 10:10
Re: Краш - by cm666 - 19.12.2014, 11:04
Re: Краш - by DeViLsS - 19.12.2014, 11:11
Re: Краш - by cm666 - 19.12.2014, 11:21
Re: Краш - by DeViLsS - 19.12.2014, 12:33
Re: Краш - by Daea - 19.12.2014, 12:59
Re: Краш - by DeViLsS - 19.12.2014, 13:22
Re: Краш - by DeViLsS - 19.12.2014, 13:40
Re: Краш - by CamperGTA - 21.12.2014, 09:41

Forum Jump:


Users browsing this thread: 1 Guest(s)