Error with a Variable - 31/05/03 07:05 PM
I have a problem with this script I just created
It's supposed to Say "[19:54:12] [+Rick999[Away]] Hey, ThanX Demo_unit, you've busted me out 3 out of 6 total times!"
but instead it says
"[19:54:12] [+Rick999[Away]] Hey, ThanX Demo_unit, you've busted me out 3 1 out of 6 total times!"
Can someone help me with this?
Code:
on *:TEXT:You busted Rick 999 out!:#:{ if (%DF.options == on) && ($nick != $me) { goto busts } :busts if (%busts. [ $gettok(1,1,33) ] != $null) { inc %busts. [ $gettok(1,1,33) ] 1 | goto tbusts } if (%busts. [ $gettok(1,1,33) ] == $null) { set %busts. [ $gettok(1,1,33) ] 1 | goto tbusts } :tbusts if (%busts != $null) { inc %busts 1 | goto end } if (%busts == $null) { set %busts 1 | goto end } :end /msg $chan Hey, ThanX $nick $+ , you've busted me out %busts. [ $gettok(1,1,33) ] out of %busts total times! }
It's supposed to Say "[19:54:12] [+Rick999[Away]] Hey, ThanX Demo_unit, you've busted me out 3 out of 6 total times!"
but instead it says
"[19:54:12] [+Rick999[Away]] Hey, ThanX Demo_unit, you've busted me out 3 1 out of 6 total times!"
Can someone help me with this?