mIRC Homepage
Posted By: ssgteam Scripts not working after mIRC 7.1 upgrade - 19/08/10 04:25 AM
Hello I recently upgraded to mIRC 7.1 from 6.35. None of my scripts are working anymore, except for my moo script. I have already tried unloading/loading all of them. It just says Unknown Command when I try to run the alias..

Thanks
Posted By: argv0 Re: Scripts not working after mIRC 7.1 upgrade - 19/08/10 05:08 AM
Sounds like the script is not compatible with 7.1. You should contact the author and ask if there is an update, or, if you wrote the script, you can ask in the Scripts & Popups forum about what might be wrong (with more relevant information about the problem).
Thanks for the reply. Well after reading your reply I figured out my problem, I was using "/*" and "*/" to comment out some code instead of using ";". This wasn't a problem in 6.35, but after correcting that all is working now. smile
hmmm "/*" and "*/" have been removed?

frown
I did not know that was a feature in 6.35, it seemed to work though. Maybe it was removed, none of the aliases after that commented out section were working.
Posted By: pball Re: Scripts not working after mIRC 7.1 upgrade - 19/08/10 03:21 PM
all of my home made scripts use /* and */ to store some info at the beginning of the script and i'm using 7.1
Posted By: argv0 Re: Scripts not working after mIRC 7.1 upgrade - 19/08/10 08:14 PM
/**/ comments were NOT removed. This was probably just a syntax error that was hidden due to a bug in 6.35.

Note that there are (and have always been) very strict rules about /* */

/* MUST begin the line
*/ MUST begin AND end the line

I'll bet you weren't following these rules exactly.
Posted By: Wims Re: Scripts not working after mIRC 7.1 upgrade - 19/08/10 09:17 PM
Code:
alias nottrue {
  echo -a start
  /* true for /*
  */ not true for */
  echo -a end
}
Whatever are after /* or */ on the same line is ignored
Posted By: argv0 Re: Scripts not working after mIRC 7.1 upgrade - 19/08/10 10:04 PM
But it's incorrect syntax and could easily cause problems when mIRC is upgraded if the behaviour changes. Technically speaking the only requirement is that both tokens BEGIN the line, but users should not try to abuse documented syntax just to prove how cool they are on a forum.

In any case, my point was not regarding trailing text, it was that:

Code:
/* 
comment */


Would not work as someone might expect it to.
Posted By: Wims Re: Scripts not working after mIRC 7.1 upgrade - 19/08/10 11:53 PM
I prefer tell people the exact behavior of something in mIRC so they know and then tell them they should not abuse it, they are just free to do what they want.
As argv0 pointed out, you're much better off telling them how they should be scripting it rather than pointing out how to do it the "wrong" way just because it works. If you teach people to use incorrect syntax just because it works now (even if you tell them not to abuse it), then they are just going to be back complaining about a script not working when mIRC changes it so that incorrect syntax is no longer valid.
© mIRC Discussion Forums