mIRC Home    About    Download    Register    News    Help

Print Thread
#10458 10/02/03 05:57 PM
Joined: Feb 2003
Posts: 10
T
Pikka bird
OP Offline
Pikka bird
T
Joined: Feb 2003
Posts: 10
If I use this line:
check "Give a point to everyone on team" 4, 8 80 185 17, %option.teams.points_for_all

the value of the % is set to "Give a point to everyone on team" rather that a 1/0 state

#10459 10/02/03 11:32 PM
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
in both states? if not there is no problem :-]

if (%var) { do something } <== would be if the checkbox was 1 and the var contains the value

elseif (!%var) { do something } <== would be if the checkbox was 0 but the var exists or the var doesn't exist at all


If it ain't broken, don't fix it!
#10460 11/02/03 06:56 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Putting the variable on the end is only really very useful for editboxes, not checkboxes/radiobuttons/listboxes/combos/etc.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Link Copied to Clipboard