urks... k.. the $gettok and $rand example were bad ones.. those work...
ill look around my scripts.. i had it serveral times...
to 1.
if im juggling with numbers and using them as strings, and afterwards as numbers again, than mirc sometimes get dizzy ... it sais definitively invalid params. and its all solved with an $calc() around. i make a lot math stuff with mirc, because mirc can handle with ints and chars so easily. no typecasts needed. but that phenomenon is no failure within my scripts.
and for the second one im lookin for and concrete example... but i gotta sleep now ;/ ..need to post it tomorrow..
edit: one thing... it only happens on large scripts.. where i use a lot of vars ... around 300 %vars and about 800 identifers.. maybe it has sth to with that.
that its caused by a bug i cant believe (but how knows

), because that script runs about one year without touhing it, and its handling a userdatabase with 1200 people and has got 2 permanent connections to an sql DB. its an user agent that never failt since that time. and a bug cant be solved by putting a $calc() around.... than there must be a chr within that var anytime. and the debug window is empty..