Need help with reading memory.
So i'm attempting to read the games memory, which works fine when done a certain way, but doesn't work in another way that it should. It is hard to explain so I will just post code.
WORKING CODE
NOT WORKING CODE
From what I can see, they should both be identical. But the second one does not work correctly while the first does. Any help?
EDIT: I'm an idiot. Can a mod close this?
WORKING CODE
Code:
DWORD localPlayer = mem.ReadMem<DWORD>(clientDLL + dwLocalPlayer); int crosshairID = mem.ReadMem<int>(localPlayer + iCrosshairID);
Code:
int crosshairID = mem.ReadMem<int>(clientDLL + dwLocalPlayer + iCrosshairID);
EDIT: I'm an idiot. Can a mod close this?
