mIRC Home    About    Download    Register    News    Help

Print Thread
help on this #80375
23/04/04 10:27 PM
23/04/04 10:27 PM
Joined: Oct 2003
Posts: 306
Argentina
J
jacksparrow2 Offline OP
Fjord artisan
jacksparrow2  Offline OP
Fjord artisan
J

Joined: Oct 2003
Posts: 306
Argentina
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
Re: help on this #80376
23/04/04 11:24 PM
23/04/04 11:24 PM
Joined: Jan 2003
Posts: 3,012
New Hampshire, USA
KingTomato Offline
Hoopy frood
KingTomato  Offline
Hoopy frood

Joined: Jan 2003
Posts: 3,012
New Hampshire, USA
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