[Help] Problem with active weapon id.

Discussion in 'Hawk Freedom Squadron Accounts - Buy Sell Trade' started by damian1221, 1/29/17.

Thread Status:
Not open for further replies.
  1. damian1221

    damian1221
    Expand Collapse
    High Risk Status: This user has been flagged as high risk due to one or more reasons

    0   0   0

    Offline
    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;
     
    • This user is inactive. Hasn't logged into their account in over 60 days.
Thread Status:
Not open for further replies.