Hi all,
I have a problem I have this code:
PHP Code:
get_mapname(filename, 255);
get_configsdir(confFolder, 31);
format(filename, 255, "%s/test/%s.coord", confFolder, filename);
if(id > 0)
{
client_print(id, print_chat, "OMG %s", filename);
new filepointer = fopen(filename, "w");
client_print(id, print_chat, "Filepoint %d", filepointer);
if(filepointer)
{
client_print(id, print_chat, "Save3");
fprintf(filepointer, "lol");
fclose(filepointer);
client_print(id, print_chat, "Save1.");
} else {
new f = fopen( filename, "w" );
fputs(f, "lol2");
fclose(f);
client_print(id, print_chat, "Save2.");
}
}
And when I'm starting this funtion the plugin writes:
Code:
OMG addons/amxmodx/configs/test/cs_assault_upc.coord
Filepoint 0
Save2
How to make that plugin will write "lol"? (Plugin doesn't make any file)
__________________