I am trying to print out my player's x coordinate to the gui of my dll injected hack.
I know that xposition contains a DWORD of the address containing the player's x position, but I can't get it to assign its contents to the label xposStatus:
What is working (kinda)
This prints out what I wanted it to: the memory location holding my player's x coordinates. But that is only a small proof that I am on the right path.
Attempt 1: (The compiler yells at me)
Attempt 2: ("Error: invalid type conversion")
Attempt 3: (This compiles, but doesn't change the label at all)
How can I get that float value contained in xposition?
I know that xposition contains a DWORD of the address containing the player's x position, but I can't get it to assign its contents to the label xposStatus:
What is working (kinda)
C++:
xposStatus->Text = xposition.ToString();
Attempt 1: (The compiler yells at me)
C++:
xposStatus->Text = *xposition.ToString();
C++:
xposStatus->Text = *(DWORD *)xposition.ToString();
Attempt 3: (This compiles, but doesn't change the label at all)
C++:
int test = *(DWORD *)xposition;
xposStatus->Text = test.ToString();
How can I get that float value contained in xposition?
Last edited: