Source => Browse => Trunk
/* Nem erre gondoltam xDxDxD */
bool CServer::GetConfigBoolean(String strKey, bool bDefaultValue)
{
bool bValue = false;
if(!(g_pConfig && g_pConfig->GetValueAsBoolean(strKey, bDefaultValue, &bValue)))
{
CLogFile::Printf(\"Failed to get \'%s\' value from config, defaulting to \'%s\'\\n\", strKey.C_String(), (bDefaultValue ? \"true\" : \"false\"));
}
return bValue;
}
Ez pont jól jött. :problem: Kösz!
Szerk.
JAVÁRJ!
if((ulTime - m_ulLastUpdate) >= SERVER_LIST_TIMEOUT)
{
// Is this the first post?
if(!m_bSentListedMessage && !m_bSentBannedMessage && !m_bSentFailedMessage)
CLogFile::Printf(\"Posting server to server list.\\n\");
// Post the update
if(m_pHttpClient->Post(true, m_strUpdatePath))
m_bWaitingForData = true;
else
{
if(!m_bSentFailedMessage)
{
CLogFile::Printf(\"Failed to post server to server list (%s)!\\n\", m_pHttpClient->GetLastErrorString().C_String());
m_bSentFailedMessage = true;
}
}
// Set the last update time
m_ulLastUpdate = ulTime;
}