Realshadow 1 Posted November 9, 2024 Share Posted November 9, 2024 Hey, currently I am implementing the extended Battlepass (https://metin2hub.com/threads/new-extended-battlepass-system.674/ ). The Problem is, in the ClientManager.h I get the following Error: ./ClientManager.h:455:14: error: use of undeclared identifier 'TBattlePassRanking' 455| std::vector<TBattlePassRanking*> m_vec_battlePassRanking; ./ClientManager.h:455:33: error: expected expression 455| std::vector<TBattlePassRanking*> m_vec_battlePassRanking; ./ClientManager.h:455:14: error: use of undeclared identifier 'TBattlePassRanking' 455| std::vector<TBattlePassRanking*> m_vec_battlePassRanking; ./ClientManager.h:455:33: error: expected expression 455| std::vector<TBattlePassRanking*> m_vec_battlePassRanking; I have declared this type in the common/tables.h #ifdef __BATTLE_PASS_SYSTEM__ typedef struct SPlayerBattlePassMission { DWORD dwPlayerId; DWORD dwMissionId; DWORD dwBattlePassId; DWORD dwExtraInfo; BYTE bCompleted; BYTE bIsUpdated; } TPlayerBattlePassMission; typedef struct SBattlePassRewardItem { DWORD dwVnum; BYTE bCount; } TBattlePassRewardItem; typedef struct SBattlePassMissionInfo { BYTE bMissionType; DWORD dwMissionInfo[3]; TBattlePassRewardItem aRewardList[MISSION_REWARD_COUNT]; } TBattlePassMissionInfo; typedef struct SBattlePassRanking { BYTE bPos; char playerName[CHARACTER_NAME_MAX_LEN + 1]; DWORD dwFinishTime; } TBattlePassRanking; typedef struct SBattlePassRegisterRanking { BYTE bBattlePassId; char playerName[CHARACTER_NAME_MAX_LEN + 1]; } TBattlePassRegisterRanking; #endif And in the ClientManager.h I have included the common/tables.h at the start of the file. My ClientManager.h in the line 455 looks like this: #ifdef __BATTLE_PASS_SYSTEM__ std::vector<TBattlePassRanking*> m_vec_battlePassRanking; #endif Thanks for your Help Guys 1 Link to comment Share on other sites More sharing options...
Solution Realshadow 1 Posted November 10, 2024 Author Solution Share Posted November 10, 2024 We Fixed it. We had to add the macro BATTLE_PASS_SYSTEM to the compile Options. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now