25.07.2009, 04:06
Well this is come coding i have done
I want it so i can do something like this.
CreateLog("test1.log", "%s %s\r\n", GetServerTime(), string);
Код:
stock CreateLog(fname[], string[], {float,_}:...)
{
new str[256], File:hfile;
format(str, sizeof(str), string);
hfile = fopen(fname, io_append);
fwrite(hfile, str);
fclose(hfile);
}
CreateLog("test1.log", "%s %s\r\n", GetServerTime(), string);

