View previous topic :: View next topic |
Author |
Message |
cancandodo Advanced Cheater Reputation: 0
Joined: 09 Mar 2012 Posts: 62
|
Posted: Sat Feb 02, 2019 9:38 pm Post subject: how to check a scipt is freeze or unfreeze? |
|
|
i write a lua,to active a checkbox to freeze a ce srcipt,or unactive a checkbox to unfreeze a ce srcipt
but there is a problem,if the script run flase(unfreeze),the checkbox is also be actived...
===============
function CECheckbox1Change(sender)
if(checkbox_getState(UDF1.CECheckbox1)==1)then
memoryrecord_freeze(addresslist_getMemoryRecordByDescription(addresslist,[[AA]]))
else
memoryrecord_unfreeze(addresslist_getMemoryRecordByDescription(addresslist,[[AA]]))
end
end
===============
how to write a lua
when the scipt "AA" run false(unfreeze),the checkbox do not be active.
===============
Description: |
|
Filesize: |
114.56 KB |
Viewed: |
2877 Time(s) |
|
|
|
Back to top |
|
|
AylinCE Grandmaster Cheater Supreme Reputation: 31
Joined: 16 Feb 2017 Posts: 1247
|
Posted: Sat Feb 02, 2019 11:42 pm Post subject: |
|
|
Code: | function CECheckbox1Change(sender)
addresslist=getAddressList()
if UDF1.CECheckbox1.Checked==true then
local memrec=addresslist_getMemoryRecordByDescription(getAddressList(), "AA")
memoryrecord_freeze(memrec)
showMessage("Enabled")
else
local memrec=addresslist_getMemoryRecordByDescription(getAddressList(), "AA")
memoryrecord_unfreeze(memrec)
showMessage("Disabled")
end
end |
_________________
|
|
Back to top |
|
|
cancandodo Advanced Cheater Reputation: 0
Joined: 09 Mar 2012 Posts: 62
|
Posted: Sun Feb 03, 2019 12:06 am Post subject: |
|
|
Aylin wrote: | Code: | function CECheckbox1Change(sender)
addresslist=getAddressList()
if UDF1.CECheckbox1.Checked==true then
local memrec=addresslist_getMemoryRecordByDescription(getAddressList(), "AA")
memoryrecord_freeze(memrec)
showMessage("Enabled")
else
local memrec=addresslist_getMemoryRecordByDescription(getAddressList(), "AA")
memoryrecord_unfreeze(memrec)
showMessage("Disabled")
end
end |
|
this code work incorrect
The Srcipt do not run success(still unfreeze in CE),but the checkbox is be actived and messenge is show as "Enable"
|
|
Back to top |
|
|
Lynxz Gaming Expert Cheater Reputation: 4
Joined: 01 Jul 2017 Posts: 208 Location: help
|
Posted: Sun Feb 03, 2019 12:20 am Post subject: Re: how to check a scipt is freeze or unfreeze? |
|
|
table = getAddressList().getMemoryRecordByDescription
function CECheckbox1Change(sender)
if UDF1.CECheckbox1.checked == true then
table("AA").active = true
else
table("AA").active = false
end
end
_________________
my english is bad
discord : rynx#9828 |
|
Back to top |
|
|
AylinCE Grandmaster Cheater Supreme Reputation: 31
Joined: 16 Feb 2017 Posts: 1247
|
|
Back to top |
|
|
cancandodo Advanced Cheater Reputation: 0
Joined: 09 Mar 2012 Posts: 62
|
Posted: Sun Feb 03, 2019 12:38 am Post subject: |
|
|
already try
your code is make script freeze or unfreeze,is not check script freezed or unfreezed by now
we run the code "memoryrecord_freeze(memrec) "
but sometime,srcipt can not run success,the sript is still unfreeze in ce addlist panel
i need to check the scipt run success or no success
for ex
the code of "AA" is
alloc(point,2048)
registersymbol(wrong)
this code can not work success,because it is a wrong scipt
but when i click the checkbox,the checkbox is still be active
nomatter the scipt is run success or not success
|
|
Back to top |
|
|
Lynxz Gaming Expert Cheater Reputation: 4
Joined: 01 Jul 2017 Posts: 208 Location: help
|
Posted: Sun Feb 03, 2019 1:27 am Post subject: Re: how to check a scipt is freeze or unfreeze? |
|
|
Maybe like this?
Code: |
table = getAddressList().getMemoryRecordByDescription
function CECheckbox1Change(sender)
if table("AA").active == true then
sender.checked = true
showMessage("Script AA is active")
else
sender.checked = false
showMessage("Script AA is not active")
end
end
|
_________________
my english is bad
discord : rynx#9828 |
|
Back to top |
|
|
|