mIRC Homepage
Posted By: Jigsy * /inc: invalid parameters - 01/11/06 04:00 PM
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
Posted By: KingTomato Re: * /inc: invalid parameters - 01/11/06 04:05 PM
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)
Posted By: Jigsy Re: * /inc: invalid parameters - 01/11/06 04:07 PM
Still the same problem. frown
Posted By: deegee Re: * /inc: invalid parameters - 01/11/06 04:10 PM
scon evaluates %i, so the inc command looks like "inc 0 1" ... use { inc -s % $+ i }
Posted By: KingTomato Re: * /inc: invalid parameters - 01/11/06 04:11 PM
tóuché my friend. My excuse is I just woke up. wink
Posted By: Jigsy Re: * /inc: invalid parameters - 01/11/06 04:16 PM
Thanks to you both. ^^
© mIRC Discussion Forums