Raised This Month: $ Target: $400
 0% 

Log code fails


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-19-2011 , 02:17   Log code fails
Reply With Quote #1

PHP Code:
    new iszLogpath[64], szMapname[32], szBuffer[128]
    
get_mapname(szMapnamecharsmax(szMapname))
    
get_time("%Y%m%d"szBuffercharsmax(szBuffer))
    
get_localinfo("amxx_logs"szLogpathcharsmax(szLogpath))
    
    do
    {
        if(
iformatex(g_szMapLogNamecharsmax(g_szMapLogName), "%s/maplogs/%s_%s_%d.log"szLogpathszMapnameszBufferi)
        else  
formatex(g_szMapLogNamecharsmax(g_szMapLogName), "%s/maplogs/%s_%s.log"szLogpathszMapnameszBuffer)
        
        
i++
    }
    while(
file_exists(g_szMapLogName))
    
    
log_to_file(g_szMapLogName"Map Started ^"%s^""szMapname
What's wrong with that code? It doesn't creates the path and the logfile :/ i'm doing this code on plugin_precache, and I don't know which is the trouble..
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS 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:08.


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