Hacubi How do I cheat?
Reputation: 0
Joined: 29 Nov 2020 Posts: 5
|
Posted: Thu Dec 31, 2020 8:10 pm Post subject: Change Float value |
|
|
Hi, can someone figure this out?, i have
float value here and set it to dropdown list, what i want is
change the value using checkbox,
for example i have speed 2, 3, 4, 5
i use checkbox in form editor
using this code;
local mr=AddressList.getMemoryRecordByDescription('Speed')
mr.Value=2
local tag = sender.Tag;
if (tag == 0) then
sender.Tag = 1;
mr.Value=2
else
sender.Tag = 0;
end
CETrainer_CECheckbox2.State='cbUnchecked'
CETrainer_CECheckbox3.State='cbUnchecked'
CETrainer_CECheckbox4.State='cbUnchecked'
end
or
local al=getAddressList()
local i
for i=0, al.Count-1 do
if al[i].Description=='Speed' then
al[i].Active=true
al[i].Value=2
end
CETrainer_CECheckbox2.State='cbUnchecked'
CETrainer_CECheckbox3.State='cbUnchecked'
CETrainer_CECheckbox4.State='cbUnchecked'
end[b]
still not working, only check and uncheck works but the value still not changing
its disable because i use another button to enable them
Description: |
|
Filesize: |
8.54 KB |
Viewed: |
813 Time(s) |

|
_________________
Just a Passerby |
|