Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Tut]Accuracy

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials -> LUA Tutorials
View previous topic :: View next topic  
Author Message
Frouk
Expert Cheater
Reputation: 0

Joined: 22 Jun 2021
Posts: 123
Location: 0xFFFFFF

PostPosted: Sat Jul 10, 2021 3:31 am    Post subject: [Tut]Accuracy Reply with quote

Here's some code to make accuracy of something
Code:
address1 = 0x123456;
address2 = 0x123456;
--[[This two addresses are need to make accuracy just replace the 0x123456 with your addresses,you can rename this]]

readAddress1 = readInteger(address1);
readAddress2 = readInteger(address2);
--You can rename this

difference = (readAddress1/readAddress2);
accuracy = math.abs(100 * difference);
--[[Select between this
print(accuracy)
or
showMessage(accuracy)
]]


If something wrong with your code you can post it here
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials -> LUA Tutorials All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites