Skip to content

Commit

Permalink
Try to update memscript
Browse files Browse the repository at this point in the history
Try to update memscript
  • Loading branch information
SmileYzn committed Dec 18, 2024
1 parent 955f081 commit f0c38a1
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion MatchBot/MatchAdmin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void CMatchAdmin::ServerActivate()
this->m_Data.insert(std::make_pair(Info.Auth, Info));
}
}
catch (...)
catch (int ErrorCode)
{
// Catch for erros
//gpMetaUtilFuncs->pfnLogConsole(PLID, "[%s][%s] %s", __func__, MB_ADMIN_LIST_FILE, lpMemScript->GetError().c_str());
Expand Down
2 changes: 1 addition & 1 deletion MatchBot/MatchCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void CMatchCommand::ServerActivate()
this->m_Data[Name] = {Index, Name, Flag};
}
}
catch (...)
catch (int ErrorCode)
{
// Catch for erros
//gpMetaUtilFuncs->pfnLogConsole(PLID, "[%s][%s] %s", __func__, MB_COMMANDS_FILE, lpMemScript->GetError().c_str());
Expand Down
2 changes: 1 addition & 1 deletion MatchBot/MatchCvarMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void CMatchCvarMenu::ServerActivate()
}
}
}
catch (...)
catch (int ErrorCode)
{
// Catch for erros
//gpMetaUtilFuncs->pfnLogConsole(PLID, "[%s][%s] %s", __func__, MB_CVAR_MENU_FILE, lpMemScript->GetError().c_str());
Expand Down
2 changes: 1 addition & 1 deletion MatchBot/MatchLanguage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void CMatchLanguage::Load()
}
}
}
catch (...)
catch (int ErrorCode)
{
// Catch for erros
// gpMetaUtilFuncs->pfnLogConsole(PLID, "[%s][%s] %s", __func__, MB_LANGUAGE_FILE, lpMemScript->GetError().c_str());
Expand Down
2 changes: 1 addition & 1 deletion MatchBot/MatchUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ std::map<int, std::string> CMatchUtil::GetMapList(bool CurrentMap)
}
}
}
catch (...)
catch (int ErrorCode)
{
// Catch for erros
//gpMetaUtilFuncs->pfnLogConsole(PLID, "[%s][%s] %s", __func__, MB_MAP_LIST_FILE, lpMemScript->GetError().c_str());
Expand Down
2 changes: 1 addition & 1 deletion MatchBot/include/MemScript.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class CMemScript

eTokenResult GetToken()
{
if ((std::time(NULL) - this->m_Timer) > 0)
if ((std::time(NULL) - this->m_Timer) > 1000)
{
this->SetError(4);
throw 1;
Expand Down

0 comments on commit f0c38a1

Please sign in to comment.