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 


writefloat problem with pointer

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

Joined: 05 Feb 2012
Posts: 5

PostPosted: Sun Feb 05, 2012 8:28 am    Post subject: writefloat problem with pointer Reply with quote

Hi this is my first script. I am trying to change a float value from trackbar. I am trying to use this script.

Code:

addresslist=getAddressList()
zoomad = addresslist_getMemoryRecord(addresslist, 0)
value2=addresslist_getCount(addresslist)
function CETrackBar1Change(sender)
local value=trackbar_getPosition(CETrainer_1_CETrackBar1)
local gameaddress='[[game.exe+009836C0]+4]+1c8]+30'
writeFloat(zoomad, value);
control_setCaption(CETrainer_1_CELabel2,value)
end





strings_add(getAutoAttachList(), "game.exe")
gBeepOnAction=true
form_show(CETrainer_1)
function AboutClick()
  showMessage(gAboutText)
end
gAboutText=[[blabala]]

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

--TRAINERGENERATORSTOP--



There is only one pointer in addresslist. Here it is..

Code:
<?xml version="1.0"?>
<CheatTable>
  <CheatEntries>
    <CheatEntry>
      <ID>1</ID>
      <Description>"zoom"</Description>
      <Color>80000008</Color>
      <VariableType>Float</VariableType>
      <Address>"game.exe"+009836C0</Address>
      <Offsets>
        <Offset>30</Offset>
        <Offset>1C8</Offset>
        <Offset>4</Offset>
      </Offsets>
      <Hotkeys>
        <Hotkey>
          <Action>Increase Value</Action>
          <Keys>
            <Key>17</Key>
            <Key>16</Key>
            <Key>38</Key>
          </Keys>
          <Value>200</Value>
          <ID>0</ID>
        </Hotkey>
        <Hotkey>
          <Action>Decrease Value</Action>
          <Keys>
            <Key>17</Key>
            <Key>16</Key>
            <Key>40</Key>
          </Keys>
          <Value>200</Value>
          <ID>1</ID>
        </Hotkey>
      </Hotkeys>
    </CheatEntry>
  </CheatEntries>
</CheatTable>
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 474

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

PostPosted: Sun Feb 05, 2012 8:42 am    Post subject: Reply with quote

Code:

local gameaddress='[[game.exe+009836C0]+4]+1c8]+30'

rule 1: the number of [ must be equal to the number of ]


so try
Code:

local gameaddress='[[[game.exe+009836C0]+4]+1c8]+30'

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
acg44
How do I cheat?
Reputation: 0

Joined: 05 Feb 2012
Posts: 5

PostPosted: Sun Feb 05, 2012 9:27 am    Post subject: Reply with quote

Oh my :evil: . That's the worst mistake I ever made. Thank you.
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