Saving an report into a .txt file at scriptfiles (+rep)
#3

Код:
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;
}
Yeaa... goto scriptfiles -> create reports.txt
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)