mIRC Home    About    Download    Register    News    Help

Print Thread
* /inc: invalid parameters #163572 01/11/06 04:00 PM
Joined: Nov 2004
Posts: 826
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 826
Code:
/cNetwork {
  var %i = 0
  scon -at1 if ($network == $1) { inc %i 1 }
  return %i
}


//echo -a $cNetwork(UnrealGamers)

Quote:

* /inc: invalid parameters


I don't understand what the problem is wif it. o_O


What do you do at the end of the world? Are you busy? Will you save us?
Re: * /inc: invalid parameters #163573 01/11/06 04:05 PM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
It may be mirc having trouble with the brace, I'm not sure. Try this instead:

scon -at1 inc %i $iif($network == $1,1,0)


-KingTomato
Re: * /inc: invalid parameters #163574 01/11/06 04:07 PM
Joined: Nov 2004
Posts: 826
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 826
Still the same problem. frown


What do you do at the end of the world? Are you busy? Will you save us?
Re: * /inc: invalid parameters #163575 01/11/06 04:10 PM
Joined: Jun 2006
Posts: 508
D
deegee Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
scon evaluates %i, so the inc command looks like "inc 0 1" ... use { inc -s % $+ i }

Re: * /inc: invalid parameters #163576 01/11/06 04:11 PM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
tóuché my friend. My excuse is I just woke up. wink


-KingTomato
Re: * /inc: invalid parameters #163577 01/11/06 04:16 PM
Joined: Nov 2004
Posts: 826
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 826
Thanks to you both. ^^


What do you do at the end of the world? Are you busy? Will you save us?