mIRC Home    About    Download    Register    News    Help

Print Thread
#197551 08/04/08 11:36 PM
Joined: Jul 2004
Posts: 59
L
Babel fish
OP Offline
Babel fish
L
Joined: Jul 2004
Posts: 59
I am trying to get this to work, What I want is for the script to list the common channels that the nick is in with me, The while loop dosnt seem to be increasing. and it ends up in a loop. with only first channel showing.


test {
var %nickcom = $1
var %cc = 1
while (%cc <= $comchan(%nickcom,0)) { //echo -a $comchan(%nickcom,%cc) Test complete }
inc %cc 1
}

Joined: Jul 2004
Posts: 59
L
Babel fish
OP Offline
Babel fish
L
Joined: Jul 2004
Posts: 59
Never mind I see what I did the closing } was in wrong place the below works now

test {
var %namecom = $1
var %cc = 1
while (%cc <= $comchan(%namecom,0)) {
//echo -a $comchan(%namecom,%cc) Test complete
inc %cc 1
}


Link Copied to Clipboard