mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2010
Posts: 3
S
ssgteam Offline OP
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Aug 2010
Posts: 3
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

Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
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).


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Aug 2010
Posts: 3
S
ssgteam Offline OP
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Aug 2010
Posts: 3
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

Joined: Sep 2007
Posts: 202
F
Fjord artisan
Offline
Fjord artisan
F
Joined: Sep 2007
Posts: 202
hmmm "/*" and "*/" have been removed?

frown

Joined: Aug 2010
Posts: 3
S
ssgteam Offline OP
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Aug 2010
Posts: 3
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.

Joined: Nov 2009
Posts: 295
P
Fjord artisan
Offline
Fjord artisan
P
Joined: Nov 2009
Posts: 295
all of my home made scripts use /* and */ to store some info at the beginning of the script and i'm using 7.1


http://scripting.pball.win
My personal site with some scripts I've released.
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
/**/ 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.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Jul 2006
Posts: 4,134
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,134
Code:
alias nottrue {
  echo -a start
  /* true for /*
  */ not true for */
  echo -a end
}
Whatever are after /* or */ on the same line is ignored


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
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.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Jul 2006
Posts: 4,134
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,134
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.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard