Problem with active weapon id.
Hello, I have one question, what's wrong with this code and why always returs id 257 ??
Code:
DWORD hWeapon = Read<DWORD>(BaseAddress + DwActiveWeapon); int weaponEntId = hWeapon & 0xFFF; DWORD DwWeaponBase = Read<DWORD>(DwClient + DwEntityList + (weaponEntId - 1) * 0x10); int WeaponID = Read<int>(DwWeaponBase + DwWeaponId); return WeaponID;
