when I type //Scid 25, i get as expected (and like you) :
* No such connection id: 25

This mean you're doing this too somewhere in your script, use echo to debug each line that contain "scid $cid" or something similar, or try to load each file of your script one by one on a clean install, but i'm sure it's not a problem with mIRC.

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