mIRC Home    About    Download    Register    News    Help

Print Thread
#80375 23/04/04 10:27 PM
Joined: Oct 2003
Posts: 306
J
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Oct 2003
Posts: 306
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


mess with the best
#80376 23/04/04 11:24 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
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]
}



-KingTomato

Link Copied to Clipboard