Raised This Month: $ Target: $400
 0% 

[solved]logging


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Dr.G
Senior Member
Join Date: Nov 2008
Old 02-06-2009 , 07:40   [solved]logging
Reply With Quote #1

I do some logging like this:

PHP Code:
  #if LOG_PLAYER_BONUS 
  
new LogFile[128]
  new 
steamid get_user_userid(killer)
 
  
get_datadir(LogFilesizeof LogFile 1)
  
format(LogFilesizeof LogFile 1"%s/dod_combat_bonus/%s"LogFileBONUS_LOG_NAME)
 
  new 
iFile fopen(LogFile"wt+")
  
fprintf(iFile,"[DoD Combat Bonus]%s | STEAMID (%d) | got a godmode bonus!^n"namesteamid)
  
fclose(iFile)
  
#endif 
but as it is, it overwrites the last line it made. How can i get it to write on a new line everytime?
__________________

Last edited by Dr.G; 02-06-2009 at 09:05.
Dr.G is offline
 



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 01:50.


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