28.11.2015, 18:22
PHP код:
new string1[80];
format(string1,80,"Logs/Command.txt");
new
File:lFile = fopen(string1, io_append),
logData[200],
fyear, fmonth, fday,
fhour, fminute, fsecond;
getdate(fyear, fmonth, fday);
gettime(fhour, fminute, fsecond);
format(logData, 200,"[%02d/%02d/%04d %02d:%02d:%02d] %s: %s \r\n", fday, fmonth, fyear, fhour, fminute, fsecond, GetName(playerid), cmdtext);
fwrite(lFile, logData);
fclose(lFile);
return 1;