mIRC Homepage
Posted By: jacksparrow2 help on this - 23/04/04 10:27 PM
alias server {
.set %servername $+ %numero $1-
.echo -s servername $+ %numero
.inc %numero
.server -m %servername $+ %numero this part has an error
}


can you help me
Posted By: KingTomato Re: help on this - 23/04/04 11:24 PM
When assigning a variable with several parts, the $+ is allowed. To call (get the value of) a variable with different parts however, you need either $eval() or []'s. Here is a working example:

Code:
alias server { 
  /set %servername $+ %numero $1- 
  /echo -s [color:Red]%[/color]servername [color:red][[/color] $+ [color:red][[/color] %numero [color:red]][/color] [color:red]][/color]
  /inc %numero
  .server -m %servername [color:red][[/color] $+ [color:red][[/color] %numero [color:red]][/color] [color:red]][/color]
}

© mIRC Discussion Forums