Quote Originally Posted by BlancO View Post
The problem is I can't open file.

Console_mp.log
PHP Code:
Error
******* 
script compile error *******
Error: return value of developer command can not be accessed if not in a /# ... #/ comment: (file 'blanco/_start.gsc', line 25)
 
openfile("file.txt""write");
     *
************************************ 
Script
PHP Code:
openfile("file.txt""write");
fprintln(f"Save it to file.");
closefile(f); 
As pointed out already, the File functions only works in developer mode. However, if you want to READ data, use COD4 tableLookUp() function. I did this for a rank system in COD4 1.0 - 1.4, before IW enabled the getStat() and setStat() for mods. Before that, ranks could not be saved (the "write" File function only worked in developer mode), but we could at least read data.