Raised This Month: $ Target: $400
 0% 

Mistake in log system


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Kushfield
Member
Join Date: Jan 2017
Location: Estonia
Old 06-30-2018 , 04:14   Re: Mistake in log system
Reply With Quote #4

I see 2 things wrong here, perhaps that's why:
PHP Code:
        new tarih[64];
        
get_time("%m/%d/%Y"tarihcharsmax(tarih));
        
log_to_file("addons/amxmodx/purpo_attack_log/%s.log""%s"tariharg); 
1. You're trying to use slashes in filename, which is not possible, since they are used for separating directories.
2. You're trying to format both the file name and the message in log_to_file (?), although it's possible only for the message.

Try replacing it with this:
PHP Code:
        new tarih[64];
        
get_time("addons/amxmodx/purpo_attack_log/%Y-%m-%d.log"tarihcharsmax(tarih));
        
log_to_file(tariharg); 
Kushfield 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 12:33.


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