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 


Need Help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
hector689
How do I cheat?
Reputation: 0

Joined: 18 Jun 2013
Posts: 3

PostPosted: Sat Jun 22, 2013 7:23 pm    Post subject: Need Help Reply with quote

Code:

--TRAINERGENERATORSTART--
--This is autogenerated code. Changing code in this block will
--get erased and rewritten if you regenerate the trainer code

--Uncomment the following line if this is a Cheat Table format trainer and you don't want CE to show (Tip, save as .CETRAINER alternatively)
--hideAllCEWindows()

RequiredCEVersion=6.2
if (getCEVersion==nil) or (getCEVersion()<RequiredCEVersion) then
  messageDialog('Please install Cheat Engine '..RequiredCEVersion, mtError, mbOK)
  closeCE()
end

strings_add(getAutoAttachList(), "WizardGraphicalClient.exe")
gBeepOnAction=true
form_show(CETrainer_1)

function Enable(sender)
speedhack_setSpeed(4.5) --Sets the game speed to 4.5 Original Speed
messageDialog('GameSpeed Changed to 4.5')
end

function Enable1(sender)
speedhack_setSpeed(0) --Sets Game speed to 0 From Original Speed
messageDialog('GameSpeed Changed to 0')
end

function Disable(sender)
speedhack_setSpeed(1) --Sets Game Speed to Normal
messageDialog('Game Speed Changed to Normal')
end

function AboutClick()
  showMessage(gAboutText)
end
function CloseClick()
  closeCE()
  return caFree --onClick doesn't care, but onClose would like a result
end

--TRAINERGENERATORSTOP--

it keeps saying Error:Access violation
Back to top
View user's profile Send private message
DaSpamer
Grandmaster Cheater Supreme
Reputation: 52

Joined: 13 Sep 2011
Posts: 1578

PostPosted: Sat Jun 22, 2013 7:47 pm    Post subject: Reply with quote

This probably causes the issue.
Code:
form_show(CETrainer_1)

Make sure your form name is really CETrainer_1
And this:
Code:
messageDialog('GameSpeed Changed to 0')

Not gonna work.
use showMessage instead, unless you really want to make and dialog.

_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
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