bakewell66 How do I cheat? Reputation: 0
Joined: 16 May 2018 Posts: 1
|
Posted: Wed May 16, 2018 8:42 am Post subject: help with reading values |
|
|
Hi there,
I have been trying to write a simple script that reads values from addresses and run code from that
This is my code:
Code: |
PlayerZ = readFloat("[\"PROGRAM.exe\" + 005CA8AC] + 11C");
PlayerX = readFloat("[\"PROGRAM.exe\" + 005CA8AC] + 114");
MenuNum = readInteger("[\"PROGRAM.exe\" + 007A0B68] + 31C");
if (MenuNum == 0) then
--bla
end
if (PlayerZ == 400) then
--bla
end
|
This works but I want it to constantly check, and run if the if statement is true, instead of only running once. Any help would be appreciated.
|
|