diff --git a/MatchBot/MatchAdmin.h b/MatchBot/MatchAdmin.h index 02ea0d7..e8fb714 100644 --- a/MatchBot/MatchAdmin.h +++ b/MatchBot/MatchAdmin.h @@ -1,7 +1,7 @@ #pragma once // Admin settings file -constexpr auto MB_ADMIN_LIST_FILE = "cstrike/addons/matchbot/users.txt"; +char MB_ADMIN_LIST_FILE[] = "cstrike/addons/matchbot/users.txt"; // Admin struct info typedef struct S_ADMIN_INFO diff --git a/MatchBot/MatchBot.cpp b/MatchBot/MatchBot.cpp index c83e6fa..9356971 100644 --- a/MatchBot/MatchBot.cpp +++ b/MatchBot/MatchBot.cpp @@ -972,7 +972,7 @@ void CMatchBot::Scores(CBasePlayer* Player, bool Method) void CMatchBot::Help(CBasePlayer* Player, bool AdminHelp) { // Default Help File Path - char Path[MAX_PATH] = "cstrike/addons/matchbot/users_help.html"; + char Path[] = "cstrike/addons/matchbot/users_help.html"; // If has admin flag if (AdminHelp && gMatchAdmin.Access(Player->entindex(), ADMIN_LEVEL_C)) diff --git a/MatchBot/MatchCommand.h b/MatchBot/MatchCommand.h index b11d862..46a338f 100644 --- a/MatchBot/MatchCommand.h +++ b/MatchBot/MatchCommand.h @@ -1,7 +1,7 @@ #pragma once // Default commands file -constexpr auto MB_COMMANDS_FILE = "cstrike/addons/matchbot/commands.txt"; +char MB_COMMANDS_FILE[] = "cstrike/addons/matchbot/commands.txt"; // Command info typedef struct S_COMMAND_INFO diff --git a/MatchBot/MatchCvarMenu.h b/MatchBot/MatchCvarMenu.h index c02cb9c..31e18fe 100644 --- a/MatchBot/MatchCvarMenu.h +++ b/MatchBot/MatchCvarMenu.h @@ -1,7 +1,7 @@ #pragma once // Default cvar menu file -constexpr auto MB_CVAR_MENU_FILE = "cstrike/addons/matchbot/cvars.txt"; +char MB_CVAR_MENU_FILE[] = "cstrike/addons/matchbot/cvars.txt"; typedef struct S_CVAR_MENU_INFO { diff --git a/MatchBot/MatchLanguage.h b/MatchBot/MatchLanguage.h index a769dcc..acd0681 100644 --- a/MatchBot/MatchLanguage.h +++ b/MatchBot/MatchLanguage.h @@ -4,7 +4,7 @@ #define _T(TextString) gMatchLanguage.Get(TextString) // Default language file -constexpr auto MB_LANGUAGE_FILE = "cstrike/addons/matchbot/language.txt"; +char MB_LANGUAGE_FILE[] = "cstrike/addons/matchbot/language.txt"; class CMatchLanguage { diff --git a/MatchBot/MatchUtil.h b/MatchBot/MatchUtil.h index eddb41a..ad9ba34 100644 --- a/MatchBot/MatchUtil.h +++ b/MatchBot/MatchUtil.h @@ -14,7 +14,7 @@ constexpr auto PRINT_CENTER = 4; constexpr auto PRINT_RADIO = 5; // Map List File -constexpr auto MB_MAP_LIST_FILE = "cstrike/addons/matchbot/maplist.txt"; +char MB_MAP_LIST_FILE[] = "cstrike/addons/matchbot/maplist.txt"; class CMatchUtil {