Ask for help
Moderators: Murderator+, Murderator
-
primate
- Posts: 3
- Joined: 2006-08-02 06:17:59
Post
by primate »
is it posssible make something like this work using str()?Cause im trying to do a kind of switch , but goMenu() is returning me a parse error.Thanks.
Code: Select all
var b=1
sub goMenu()
goto 'A'+str(b)
end sub
sub menu()
A1:
uo.print(str(b))
wait(2000)
b=b+1
goMenu()
A2:
uo.print(str(b))
wait(2000)
b=1
goMenu()
end sub
-
Ex-Brodyaga
- Junior Expert
- Posts: 150
- Joined: 2004-04-12 20:26:41
Post
by Ex-Brodyaga »
Maybe some like this?
Code: Select all
var b
sub main()
b=1
GoMenu(b)
end sub
sub GoMenu(b)
if b==1 then
uo.print(str(b))
b=b+1
end if
if b==2 then
uo.print(str(b))
b=1
end if
end sun