Posted: Fri May 08, 2020 11:08 am Post subject: [HELP]Code injection problem!
Hi guys!
I'm trying to create a map waypoint tp and i have a problem.
The Waypoint coordinates are saved as float values in 32-bit register (eax) and the character coordinates are saved as double values in 64-bit register (rdx) , as result my character is teleported wrong.
How to prevent this?
Code:
push rdx
mov rdx,eax // eax = (float) 50.0 X waypoint coord
mov [rsi+000001B8],rdx // rdx = (double) 4.99197265827594E16 -> wrong character X coord
pop rdx // I want to be rdx = 50.0
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum