Hello dear community, I was playing with pointers and stuff in the game and i decided to make a simple program that displays some values like HP, MP, Player position, etc. My problem is that whenever I try to access to the Player Position adress i get instant crash when i inject the dll. The code i use for that is:
Code:
std::cout << "Player position: " << std::endl << " X: " << *(UINT16*)(*(DWORD*)(0x703ab4) + 0xC) << " Y: " << *(UINT16*)(*(DWORD*)(0x703ab4) + 0xE) << std::endl;
I tried accessing to the first pointer value who's another address with the following code and it worked but whenever i try to access the value i get crash
Code:
std::cout << "Player position: " << std::endl << " X: " << (UINT16*)(*(DWORD*)(0x703ab4) + 0xC) << " Y: " << (UINT16*)(*(DWORD*)(0x703ab4) + 0xE) << std::endl;
Any dev that can help me?