10.04.2009, 11:26
Hi. I made this command:
And I donґt get any errors, file 8889.txt is created, but nothing is written in it. What is that caused by? Thanks.
P.S. I tested it on Windows localhost, but I donґt think itґs matter.
Код:
dcmd_8889(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
new year, month, day, hour, minute, second;
getdate(year, month, day);
gettime(hour, minute, second);
new string[256], fname[11];
format(string, sizeof(string), "\n%d/%d/%d %d:%d:%d - %s: %s", year, month, day, hour, minute, second, Nick(playerid), params);
format(fname, sizeof(fname), "FK/8889.txt");
new File:file8889 = fopen(fname, io_write);
fwrite(file8889, string);
fclose(file8889);
}
return 1;
}
P.S. I tested it on Windows localhost, but I donґt think itґs matter.

