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 


Whats wrong with this?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
forested
Newbie cheater
Reputation: 0

Joined: 04 Jul 2015
Posts: 23

PostPosted: Sun Feb 21, 2016 11:03 am    Post subject: Whats wrong with this? Reply with quote

function Authenticate(sender)
beep()
UDF1_1.Visible=false
UDF1.Visible=true
UDF1_2.Visible=false
UDF2.Visible=false

AOBScan("36 39 37 31 33 38 37 32")
OnlyOneResult
else
closeCE()

end
Back to top
View user's profile Send private message
Redouane
Master Cheater
Reputation: 3

Joined: 05 Sep 2013
Posts: 363
Location: Algeria

PostPosted: Sun Feb 21, 2016 12:12 pm    Post subject: Re: Whats wrong with this? Reply with quote

forested wrote:
function Authenticate(sender)
beep()
UDF1_1.Visible=false
UDF1.Visible=true
UDF1_2.Visible=false
UDF2.Visible=false

AOBScan("36 39 37 31 33 38 37 32")
OnlyOneResult
else
closeCE()

end


What are you trying to do exactly? it says syntax error because of OnlyOneResult (unexpected identifier,expecting a function call,an expression, end keyword ...), also, you didn't save the results of the aobscan.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Feb 21, 2016 12:40 pm    Post subject: Reply with quote

Code:
local aob = AOBScan("36 39 37 31 33 38 37 32")
if aob == nil or aob.Count ~= 1 then
  closeCE()
end
aob.Destroy()
Back to top
View user's profile Send private message
forested
Newbie cheater
Reputation: 0

Joined: 04 Jul 2015
Posts: 23

PostPosted: Sun Feb 21, 2016 5:22 pm    Post subject: Reply with quote

Nvm I have fixed it, I have been trying to create something like a whitelist
but it is resolved now. What I did to fix it was remove the getoneresult
and add if then and elseif statements to add multiple scans for verification
before making a form visible. Anyways thanks for all the help!
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 Lua Scripting 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 can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites