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 


Speed Hack Button in-game isn't working

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
WALLED
!BEWARE! Deletes post on answer
Reputation: 0

Joined: 17 Feb 2020
Posts: 16

PostPosted: Fri Mar 27, 2020 9:30 am    Post subject: Speed Hack Button in-game isn't working Reply with quote

Hello, i have a button which when u click it will increase in-game speed by 10.
My code was with luacall, but i changed to speedhack_setSpeed(10) and when i create an .exe standalone trainer, and click on the speed hack button in-game, it's just isn't working, also it worked for me with luacall like 3-4-5 weeks ago but both isn't working. The full code is now
Code:
function UDF1_CEPanel17Click(sender)
if sender.showhint == false then
sender.showhint = true
sender.color = '$000500D2'
end
speedhack_setSpeed(10)
sender.showhint = false
sender.color = '$0016BC27'
speedhack_setSpeed(1)
end


Also after i created the .exe standalone and tried the hack, it worked, but i put the .exe to .rar and after some time i tried, it won't worked.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25296
Location: The netherlands

PostPosted: Fri Mar 27, 2020 9:35 am    Post subject: Re: Speed Hack Button in-game isn't working Reply with quote

WALLED wrote:
Hello, i have a button which when u click it will increase in-game speed by 10.
My code was with luacall, but i changed to speedhack_setSpeed(10) and when i create an .exe standalone trainer, and click on the speed hack button in-game, it's just isn't working, also it worked for me with luacall like 3-4-5 weeks ago but both isn't working. The full code is now
Code:
function UDF1_CEPanel17Click(sender)
if sender.showhint == false then
sender.showhint = true
sender.color = '$000500D2'
end
speedhack_setSpeed(10)
sender.showhint = false
sender.color = '$0016BC27'
speedhack_setSpeed(1)
end


Also after i created the .exe standalone and tried the hack, it worked, but i put the .exe to .rar and after some time i tried, it won't worked.


that is because you set the speed to 10, set showhint to false, set color to 0016BC27 and then set speed back to 1

in short, you set speed back to 1 every single time

I suggest using a else statement, and move one of the setspeeds to the first if block

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Fri Mar 27, 2020 9:46 am    Post subject: Reply with quote

Here an example:

Code:
function UDF1_CEPanel1Click(sender)
 if sender.showhint == false then
  sender.showhint = true
  sender.color = '$000500D2'
  print('speed hack setting to 10 now')
  speedhack_setSpeed(10)
 else
  sender.showhint = false
  sender.color = '$0016BC27'
  print('speed hack set back to 1')
  speedhack_setSpeed(1)
 end
end

UDF1.Show()
UDF1.CEPanel1.OnClick = UDF1_CEPanel1Click

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
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 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