Code:
alias kickuser1 {
  if (%tmpusers == $null) { %tmpusers = 1 }
  :loop
  if $ulist(*,$2,%tmpusers) {

    ; what's this else part doing here? :)
    else { %thenumclones = th }

    if ($ulist(*,$2,%tmpusers) ison $1) {
      if (%tmpusers == 1) { %thenumclones = st }
      if (%tmpusers == 2) { %thenumclones = nd }
      if (%tmpusers == 3) { %thenumclones = rd }
      kick $1 $ulist(*,$2,%tmpusers) %tmpusers $+ %thenumclones of $ulist(*,$2,0) %ver
      inc %tmpusers 1
    }
    else { inc %tmpusers 1 | goto loop }
  }
  else {
    stop
    .rlevel clones
    mode $1 -mRx
    unset %tmpusers %thenumclones %shitaddress
  }
}


think there's at least one mistake. (notice the commented line) Might have missed something. Tried several things to reproduce that error u mentioned but couldn't get it (didn't try with your code but just some simple if-statements) so i don't know where to look for the error.


Quote:

ok it does work but sometime it doesnt work and it just keeping echo the : * /if: '$' unknown operator
can someone please take a look at this and tell me what's wrong with this thanks

So after one event or action it keeps saying that? (like in a timer or while loop?)....

Code:
alias kickuser .timerkickuser -m 0 1000 kickuser1 $1 $2  

that line makes a timer-call to the above alias which had that weird "else" statement wondering around.

I'm not putting my money on this but i think it's worth to take a look at smile