View previous topic :: View next topic |
Author |
Message |
TPRammus Advanced Cheater Reputation: 0
Joined: 05 Jan 2016 Posts: 61 Location: Germany
|
Posted: Thu May 26, 2016 8:33 am Post subject: (Need help): Writing an Integer (Error) |
|
|
Hey!
Im getting an error and I dont know how to fix it. But I know on which line it is.
Error: www fotos-hochladen net/uploads/adsafdsfsa5y9m60jc7l.png
This is line 21,22 and 23:
Code: | function CEButtonSetClick(sender)
writeInteger("[[[[[[\"Grim Dawn.exe\" + 00585134] +1a8] +50] +34] +180] +f8"], getProperty(UDF1.CEEditMax,"Text"))
end |
What is the problem now and how do I fix it?
regards, TPRammus
|
|
Back to top |
|
|
ParkourPenguin I post too much Reputation: 140
Joined: 06 Jul 2014 Posts: 4289
|
Posted: Thu May 26, 2016 9:07 am Post subject: |
|
|
Your last ending square bracket is outside the string.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
|
TPRammus Advanced Cheater Reputation: 0
Joined: 05 Jan 2016 Posts: 61 Location: Germany
|
Posted: Thu May 26, 2016 10:12 am Post subject: |
|
|
ParkourPenguin wrote: | Your last ending square bracket is outside the string. |
Thank you for your help I did not see that >.>
But I have another problem. If I put a number in the text box and click on the button, it doesnt change the value ingame.
The name of the text box is "CEEditMax", the name of the button is "CEButtonSet" and I defined "CEButtonSetClick" in the Event-tab of the button at "OnClick".
This is the address with the pointers in the cheat table: www fotos-hochladen net/uploads/sfadfsdafsdagdak6vlcs7mni.png
And this is the function currently:
Code: | function CEButtonSetClick(sender)
writeInteger("[[[[[[\"Grim Dawn.exe\" + 00235248] +1a8] +170] +360] +2a8] +188]", getProperty(UDF1.CEEditMax,"Text"))
end |
I would really appreciate it if you could tell me what the problem is now. (If I click on the button really nothing changes)
Sorry about the circumstances
regards, TPRammus
|
|
Back to top |
|
|
ParkourPenguin I post too much Reputation: 140
Joined: 06 Jul 2014 Posts: 4289
|
Posted: Thu May 26, 2016 10:20 am Post subject: |
|
|
Don't use getProperty. Just get the property from the userdata itself.
The parameters of the writeInteger function are an address and a value. You're trying to pass it the value being pointed at, not the address being pointed at. Remove the outside square brackets.
Your offsets are also in reverse order.
Code: | writeInteger("[[[[[Grim Dawn.exe+00235248]+188]+2a8]+360]+170]+1a8", UDF1.CEEditMax.Text) |
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
|
TPRammus Advanced Cheater Reputation: 0
Joined: 05 Jan 2016 Posts: 61 Location: Germany
|
Posted: Thu May 26, 2016 10:47 am Post subject: Solved :) |
|
|
Thank you so much ParkourPenguin everything works fine now
regards, TPRammus
Edit:
ParkourPenguin wrote: | Your offsets are also in reverse order. |
And yeah I wasnt sure about that (I posted the picture with the offsets because I hoped that if there is a mistake with the sequence you would tell me)
|
|
Back to top |
|
|
|