Member
- Jun
- Threads
- 3
- 22
- 1
- 3
AD: Mt2009 - Mobile & PC - 30 January 2026 CHECK THE PRESENTATION!
Hello ! Today i have a problem i can't understand...
I have this on my GameType.h :
And the system i just download say :
But the problem is, where should i add this ? I don't have #endif after
So if i add #endif and the system below, can't compile because C_Inventory_Count is declared multiples times, but if i delete one, my own system stop working... How can i add this please ?
I have this on my GameType.h :
Code:
#ifdef ENABLE_NEW_EQUIPMENT_SYSTEM
const DWORD c_Belt_Inventory_Slot_Start = c_DragonSoul_Equip_End + c_DragonSoul_Equip_Reserved_Count;
const DWORD c_Belt_Inventory_Width = 4;
const DWORD c_Belt_Inventory_Height= 4;
const DWORD c_Belt_Inventory_Slot_Count = c_Belt_Inventory_Width * c_Belt_Inventory_Height;
const DWORD c_Belt_Inventory_Slot_End = c_Belt_Inventory_Slot_Start + c_Belt_Inventory_Slot_Count;
const DWORD c_Inventory_Count = c_Belt_Inventory_Slot_End;
#else
const DWORD c_Inventory_Count = c_DragonSoul_Equip_End;
#endif
And the system i just download say :
Code:
Find --------
const DWORD c_Belt_Inventory_Slot_End = c_Belt_Inventory_Slot_Start + c_Belt_Inventory_Slot_Count;
#endif
Add below ------
#ifdef WJ_SPLIT_INVENTORY_SYSTEM
const DWORD c_Skill_Book_Inventory_Slot_Start = c_Belt_Inventory_Slot_End;
const DWORD c_Skill_Book_Inventory_Slot_Count = 135;
const DWORD c_Skill_Book_Inventory_Slot_End = c_Skill_Book_Inventory_Slot_Start + c_Skill_Book_Inventory_Slot_Count;
const DWORD c_Upgrade_Items_Inventory_Slot_Start = c_Skill_Book_Inventory_Slot_End;
const DWORD c_Upgrade_Items_Inventory_Slot_Count = 135;
const DWORD c_Upgrade_Items_Inventory_Slot_End = c_Upgrade_Items_Inventory_Slot_Start + c_Upgrade_Items_Inventory_Slot_Count;
const DWORD c_Stone_Inventory_Slot_Start = c_Upgrade_Items_Inventory_Slot_End;
const DWORD c_Stone_Inventory_Slot_Count = 135;
const DWORD c_Stone_Inventory_Slot_End = c_Stone_Inventory_Slot_Start + c_Stone_Inventory_Slot_Count;
const DWORD c_Sandik_Inventory_Slot_Start = c_Stone_Inventory_Slot_End;
const DWORD c_Sandik_Inventory_Slot_Count = 135;
const DWORD c_Sandik_Inventory_Slot_End = c_Sandik_Inventory_Slot_Start + c_Sandik_Inventory_Slot_Count;
const DWORD c_Inventory_Count = c_Sandik_Inventory_Slot_End;
#else
But the problem is, where should i add this ? I don't have #endif after
Code:
const DWORD c_Belt_Inventory_Slot_End = c_Belt_Inventory_Slot_Start + c_Belt_Inventory_Slot_Count;
So if i add #endif and the system below, can't compile because C_Inventory_Count is declared multiples times, but if i delete one, my own system stop working... How can i add this please ?

