There are ways to do what you want in mIRC script. mIRC is not php. mIRC has its own way of doing things.. instead of changing mIRC to be more like php, change your own habits to be more like mIRC's... you'll find it works just fine

Code:
%variable = dynamic_part
.timeMYTIMER $+ %variable 1 1 echo -a hi


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"