careca777 Expert Cheater
Reputation: 0
Joined: 27 Jul 2013 Posts: 121
|
Posted: Tue Oct 05, 2021 3:16 pm Post subject: Possible Bug - writeFloat |
|
|
Hi, im experiencing a possible bug, where this code:
Code: | [ENABLE]
{$lua}
if syntaxcheck then return end
local PlayerXCoord = getAddress"[PlayerX]"
local WaypointXCoord = getAddress'[["Game.exe"+1CD8EB8]+D0]+4B8'
writeFloat(PlayerXCoord+0, readFloat(WaypointXCoord+0))
writeFloat(PlayerXCoord+4, readFloat(WaypointXCoord+4))
writeFloat(PlayerXCoord+8, -200)
local PlayerX=AddressList['X PTR']
PlayerX.Active=true
local PlayerY=AddressList['Y PTR']
PlayerY.Active=true
local PlayerZ=AddressList['Z PTR']
PlayerZ.Active=true
local t=createTimer()
t.Interval=3000
t.OnTimer=function()
memrec.Active=false
t.destroy()
end
PlayerX.Active=false
PlayerY.Active=false
PlayerZ.Active=false
[DISABLE] |
Grabs a coordinate from the waypoint, for example:
-1699.386475
and writes that value into PlayerX+4
which becomes
386475
It's like it only copies the value past the decimal point.
Only i restart CE it works fine again.
What could cause this? Is it an error in the code?
X coordinate acts up too, sometimes.
Description: |
|
Filesize: |
18.69 KB |
Viewed: |
1192 Time(s) |

|
|
|