Skip to content
MSN

loop problem

A TG007 community discussion started by DreaM.

Discussion 5 posts
Page 1 of 1
Open
Topic #804 · 5 published posts · 640 views

hi all, I have small question

 


alias get {
var %x 0, %chan $avtive
while (%x <= $nick(%chan,0)) {
  echo -a $nick(%chan,%x) is not a guest
  inc %x
}
}

 

ok sure it echos for all when they join but how to let it does not echo when guest joins ?

 

when I used if ($left($nick(%chan,%x),1) == >) halt , that let the alias stops when any guest is in the room so any help? help.gif

try this

 

 

 

alias get {
var %x 0, %chan $avtive
while (%x <= $nick(%chan,0)) {
 if ($left($nick(%chan,%x),1) != >) { echo -a $nick(%chan,%x) is not a guest }
 inc %x
}
}

My code does NOT have bugs. It just develops random features.

Isn't that kind of useless? =\

who are we to say , we dont know what the code is for

My code does NOT have bugs. It just develops random features.

lol true ozzy and thank you so much and yes X as ozzy said you do not know what the code for and anyway it is prop $nick msnprofile not echo $nick is not a guest.

 

I just wanted to make things easier to be undertood and thank you again ozzy fixed.gif