global variable (or somthing like that)
Posted: 2004-05-29 09:53:38
i try to write some script working like that:
; ------------------------------------
var mode = 0
sub start()
mode = 1
while mode <> 0
uo.bandageself()
uo.wait(2000)
wend
end sub
sub stop()
mode = 0
end sub
; ------------------------------------
but that dont work
when i set mode = 0 in stop function that not change it in start function
thx for any adwise
; ------------------------------------
var mode = 0
sub start()
mode = 1
while mode <> 0
uo.bandageself()
uo.wait(2000)
wend
end sub
sub stop()
mode = 0
end sub
; ------------------------------------
but that dont work

when i set mode = 0 in stop function that not change it in start function
thx for any adwise