These look like connection id rather than connection number.
If they are connection id, you don't have to use $scon(), use the variable directly


#mircscripting @ irc.swiftirc.net == the best mIRC help channel