mIRC Home    About    Download    Register    News    Help

Print Thread
#163572 01/11/06 04:00 PM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
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?
Joined: Jan 2003
Posts: 3,012
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
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Still the same problem. frown


What do you do at the end of the world? Are you busy? Will you save us?
Joined: Jun 2006
Posts: 508
D
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 }

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


-KingTomato
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Thanks to you both. ^^


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

Link Copied to Clipboard