mIRC Home    About    Download    Register    News    Help

Print Thread
#244577 10/03/14 04:56 PM
Joined: Mar 2007
Posts: 41
E
Ameglian cow
OP Offline
Ameglian cow
E
Joined: Mar 2007
Posts: 41
how can use multi alias?

im try make this but not working

Code:
alias test { 
  goto $rand(1,2)
  :1 |   var %test1
  :2 |   var %test2
}

alias test1 { 
-----------
}

alias test2 { 
-----------
}



Last edited by EvilHeart; 10/03/14 04:57 PM.
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
I have no idea what you're trying to do.

Joined: Mar 2007
Posts: 41
E
Ameglian cow
OP Offline
Ameglian cow
E
Joined: Mar 2007
Posts: 41
Originally Posted By: Loki12583
I have no idea what you're trying to do.


i try use this alias random
Code:
alias test1 { 
-----------
}

alias test2 { 
-----------
}


that's why I'm try make like this
Code:
alias test { 
  goto $rand(1,2)
  :1 |   var %test1
  :2 |   var %test2
}

Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
You seem to be using 'var' to set variables instead of actually calling the aliases. What you probably meant to do is this:

Code:
alias test { 
  goto $rand(1,2)
  :1 | test1
  :2 | test2
}

alias test1 { 
-----------
}

alias test2 { 
-----------
}

Last edited by Khaled; 12/03/14 08:59 AM.

Link Copied to Clipboard