JackSavage Posted February 1, 2017 Share Posted February 1, 2017 (edited) Why is the value of xPos, yPos, zPos is always equal to zero DWORD *X = (*(DWORD**)(0xB6F5F0 + 0x14)) + 0x30;DWORD *Y = (*(DWORD**)(0xB6F5F0 + 0x14)) + 0x34;DWORD *Z = (*(DWORD**)(0xB6F5F0 + 0x14)) + 0x38;float xPos = *((float*)&X);float yPos = *((float*)&Y);float zPos = *((float*)&Z);char buff[200];format(buff, "%f %f %f", xPos, yPos, zPos);Log(buff); Log: [Debug]: 0.000000 0.000000 0.000000 This not position address ? Help please Edited February 1, 2017 by Jack_Savage Link to comment Share on other sites More sharing options...
fastman92 Posted February 1, 2017 Share Posted February 1, 2017 *((float*)&X); The bytes that pointer is made of are read as a float value. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now