Quote:
I noted there were no '='s for the vars, something usually leading to 'set' type variables being created instead of 'var' ones...afair, any way.
Yeah, the equal sign isn't required since mIRC 6.21 (could cause error before) so I don't use it, sure it's a good habit to use it...
And the /scon command plus the /msg command was on differents lines on purpose, now the code can be exploited since scon is "double evaluating" the channel parameter and the message.
There's also a 'typo' with the {} bracket for the while loop, and as a side note this loop could be written in a much faster way :
Code:
scon %a
var %n 1
while ($gettok(%c,%n,32)) {
msg $v1 Text To Send Here
inc %n
}


edit : put the scon before the loop in my example.

Last edited by Wims; 18/08/10 09:55 PM.

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