Raised This Month: $ Target: $400
 0% 

File write and Debug mode


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Kangaroo
Member
Join Date: Jul 2007
Location: Toulon, France
Old 07-17-2007 , 08:51   File write and Debug mode
Reply With Quote #1

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(text28"%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(logfiletext0)
 }

Thanks.
Kangaroo is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode