20.05.2014, 11:34
pawn Код:
if(strcmp("/BugReport",cmdtext,true,10) == 0)
{
new File:log;
if(fexist("reports.txt")) log = fopen("reports.txt",io_append);
else log = fopen("reports.txt",io_write);
fwrite(log,cmdtext[11]);
fwrite(log,"\r\n");
fclose(log);
return 1;
}