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 


How to fix that problem

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
ProB1
Advanced Cheater
Reputation: 0

Joined: 20 Jul 2019
Posts: 77
Location: At Home

PostPosted: Tue Feb 16, 2021 3:11 pm    Post subject: How to fix that problem Reply with quote

Code:

if UDF1.CEListBox3.items[UDF1.CEListBox3.itemindex] == "Antibounce V1" then
UDF1.CEListBox3.items[UDF1.CEListBox3.itemindex] = "Antibounce V1 [Enabled]"
showMessage("Antibounce V1 Enabled")
autoAssemble[[

]]
else
UDF1.CEListBox3.items[UDF1.CEListBox3.itemindex] = "Antibounce V1"
showMessage("Antibounce V1 Disabled")
autoAssemble[[

]]
end

---------------------------------------------------------------
UDF1.CEListBox3.itemindex = 0

---------------------------------------------------------------
in CEListbox3 have these:
Antibounce V1
Antibounce V2
Antibounce V3
Antibounce V4
---------------------------------------------------------------
What's Problem ?
if i add
Code:

if UDF1.CEListBox3.items[UDF1.CEListBox3.itemindex] == "Antibounce V2" then
UDF1.CEListBox3.items[UDF1.CEListBox3.itemindex] = "Antibounce V2 [Enabled]"
showMessage("Antibounce V2 Enabled")
autoAssemble[[

]]
else
UDF1.CEListBox3.items[UDF1.CEListBox3.itemindex] = "Antibounce V2"
showMessage("Antibounce V2 Disabled")
autoAssemble[[

]]
end


like that
its getting involved
how can i fix that need help if you dont understand lemme explain again reply

_________________
Hitler Hey im Back Smile
Discord: ProB1#0100


Last edited by ProB1 on Tue Feb 16, 2021 10:55 pm; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Tue Feb 16, 2021 3:59 pm    Post subject: Reply with quote

Don't rely on strings, and I'm assuming you can only have one cheat active at a time so:
Code:

if UDF1.CEListBox3.itemindex == 0 then
 UDF1.CEListBox3.items[0] = "Antibounce V1 [Enabled]"
 showMessage("Antibounce V1 Enabled")
autoAssemble[[

]]
else
 UDF1.CEListBox3.items[0] = "Antibounce V1"
 showMessage("Antibounce V1 Disabled")
autoAssemble[[

]]
end

_________________
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
ProB1
Advanced Cheater
Reputation: 0

Joined: 20 Jul 2019
Posts: 77
Location: At Home

PostPosted: Tue Feb 16, 2021 10:46 pm    Post subject: Reply with quote

ye i know i can only have one cheat active at a time so:

is there a event or another way tactic for use two cheat etc

let me say CEListbox3 gets items from CEListBox4

When i click to string needs open Cheat when i click it again needs close cheat

if i click another string i dont want open same cheat etc

and i want add many cheats to that how can i do that ? is there a Another Way?

_________________
Hitler Hey im Back Smile
Discord: ProB1#0100
Back to top
View user's profile Send private message Visit poster's website
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