View previous topic :: View next topic |
Author |
Message |
sir-gunny Advanced Cheater Reputation: 0
Joined: 15 Mar 2012 Posts: 80
|
Posted: Wed Dec 24, 2014 8:52 am Post subject: Create a circle and automatic update/read a adress. PLZ Help |
|
|
Hi.
I have a small problem. I want to create a red circle that change to green if my CodeInjectionFoundFlag change to 1. I dont know how to create a circle and i dont know how i do a automatic update from CodeInjectionFoundFlag (as symbol) like a adress at the cheattable. Can anyone give me an example how i do that please?
Merry Christmas
gunny
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Fri Dec 26, 2014 6:55 am Post subject: |
|
|
here is an example table with a form and an image which gets a red or green circle based on the value of the entry in the table
check the lua script
Description: |
|
Download |
Filename: |
example.ct |
Filesize: |
1.81 KB |
Downloaded: |
688 Time(s) |
_________________
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 |
|
|
sir-gunny Advanced Cheater Reputation: 0
Joined: 15 Mar 2012 Posts: 80
|
Posted: Fri Dec 26, 2014 9:52 am Post subject: |
|
|
Hi Dark Byte.
Big THX!!!
One small question again :
is
Code: | getAddressList().getMemoryRecordByDescription("CodeInjectionFoundFlag").Value |
faste then
Code: | readInteger(getAddress("MySymbol")) |
??
What code is more efficiency?
|
|
Back to top |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Fri Dec 26, 2014 10:23 am Post subject: |
|
|
yes,
and readInteger("MySymbol") is even faster. At least, it is more legible.
_________________
|
|
Back to top |
|
|
sir-gunny Advanced Cheater Reputation: 0
Joined: 15 Mar 2012 Posts: 80
|
Posted: Fri Dec 26, 2014 3:09 pm Post subject: |
|
|
Hm... Now i have a problem with my Symbol...
If i use getAddress("MySymbol") without a registered Symbol i get an error. If i use GetSymbolInfo i get always Nil, whatever i do.
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Fri Dec 26, 2014 3:29 pm Post subject: |
|
|
use errorOnLookupFailure(false) to prevent the getAddress error
_________________
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 |
|
|
sir-gunny Advanced Cheater Reputation: 0
Joined: 15 Mar 2012 Posts: 80
|
Posted: Fri Dec 26, 2014 5:19 pm Post subject: |
|
|
Quote: |
errorOnLookupFailure(state): If set to true (default) address lookups in stringform will raise an error if it can not be looked up. This includes symbolnames that are not defined and pointers that are bad. If set to false it will return 0 in those cases
(Useful for pointers that don't work 100% of the time)
6.4+:Returns the original state |
If I had read the Helptext exactly, I would have found it. Big Sorry. All your Pro's have much sympathy(?) for noobs like me! BIIIIG THX You are great!
|
|
Back to top |
|
|
|