Hi all,
I want to store frags and deaths in a file and later read this information.
But when i want to use the read_file and write_file the server say me i need to use the debug mode for my plugins.
I actually write in folder "addons/amxmodx/logs/funsteam"
Is it a way to write file without use the debug mode ?
Because i think the plugins is faster in normal mode than debug mode.
My function :
PHP Code:
public SauveH(id)
{
if (get_cvar_num("amx_ApacheHistorique")==1)
{
new text[33]
new logfile[128]
format(text, 28, "%04d %04d", PreT[id], PreM[id])
stock_replace_all(Steam[id], 31, ":", "_")
format(logfile,127,"%s/%s.txt",LogPath,Steam[id])
if(file_exists(logfile)) delete_file(logfile) // Bug Verygame
write_file(logfile, text, 0)
}
}
Thanks.