Raised This Month: $51 Target: $400
 12% 

Help me


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Den_Marko
Junior Member
Join Date: Jul 2013
Old 09-08-2015 , 15:09   Help me
Reply With Quote #1

server goes into crash comes to a point of said pieces of code

PHP Code:
void LM::InitLogMesseg()
{
    
time_t t g_pSM->GetAdjustedTime();
    
tm curtime;
    
localtime_s(&curtime, &t);
->    
m_NrmCurDay curtime.tm_mday;    <-

    
char Path[256];
    
g_pSM->BuildPath(Path_SMPathsizeof(Path), "/logs/UKRCOOP_%04d%02d%02d.log"curtime.tm_year 1900curtime.tm_mon 1curtime.tm_mday);
    
m_NrmFileName.assign(Path);
    
m_DailPrinted true;

    
FILE *fp fopen(m_NrmFileName.c_str(), "a+");
    if(
m_DailPrinted)
    {
        
char date[32];
        
m_DailPrinted false;
        
strftime(datesizeof(date), "%m/%d/%Y - %H:%M:%S", &curtime);
        
fprintf(fp"L %s: LogMessege log file session started (file \"L%04d%02d%02d.log\") (Version \"%s\")\n"datecurtime.tm_year 1900curtime.tm_mon 1curtime.tm_mdaySMEXT_CONF_VERSION);
        
fclose(fp);
    }

__________________

Last edited by Den_Marko; 09-17-2015 at 17:24.
Den_Marko is offline
Reply



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 07:00.


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