View previous topic :: View next topic |
Author |
Message |
GradenT Newbie cheater Reputation: 0
Joined: 06 May 2012 Posts: 17
|
Posted: Thu Oct 25, 2012 1:20 pm Post subject: [SOLVED] The problem with "ToggleBox" |
|
|
Hello forum users!
Tell how, me to use ToggleBox?
Code: | function CEToggleBox1Click (sender)
if writeInteger ("01C8FF0", 1)
else
writeInteger ("01C8FF0", 0)
end |
With this code, I receive an error.
Last edited by GradenT on Tue Oct 30, 2012 9:20 am; edited 1 time in total |
|
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: Thu Oct 25, 2012 2:52 pm Post subject: Re: The problem with ToggleBox |
|
|
Code: | function CEToggleBox1Click(sender)
local state = getProperty(sender,"State")
if state=="cbChecked" then
writeInteger ("01C8FF0", 1)
else
writeInteger ("01C8FF0", 0)
end
end |
_________________
|
|
Back to top |
|
|
GradenT Newbie cheater Reputation: 0
Joined: 06 May 2012 Posts: 17
|
Posted: Sat Oct 27, 2012 4:42 am Post subject: |
|
|
Thank you very much !
|
|
Back to top |
|
|
|