mIRC Home    About    Download    Register    News    Help

Print Thread
#163572 01/11/06 04:00 PM
Joined: Nov 2004
Posts: 822
J
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
J
Joined: Nov 2004
Posts: 822
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

Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
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)

Joined: Nov 2004
Posts: 822
J
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
J
Joined: Nov 2004
Posts: 822
Still the same problem. frown

Joined: Jun 2006
Posts: 506
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 506
scon evaluates %i, so the inc command looks like "inc 0 1" ... use { inc -s % $+ i }

Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
tóuché my friend. My excuse is I just woke up. wink

Joined: Nov 2004
Posts: 822
J
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
J
Joined: Nov 2004
Posts: 822
Thanks to you both. ^^


Link Copied to Clipboard