Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Suggestions
➜ Suggestion regarding Script Syntax Errors.
|
Suggestion regarding Script Syntax Errors.
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Magnum
Canada (580 posts) Bio
|
| Date
| Sat 22 Dec 2001 01:00 PM (UTC) |
| Message
| I just got the following error when saving my script:
Error number: -2146827282
Event: Execution of line 1577 column 20
Description: Expected ')'
Called by: Immediate execution
The problem for me, is that I just added a whole pile of subroutines into the script, and the error code given above only serves as an "approximation" of where the error is located. Why do I say that?
The line number does NOT count comment lines. By line 15xx, I have very many comment lines in my script.
I would like to suggest:
The error handler count comment lines, thus giving an accurate event location.
OR
The error handler echoes the error line.
I realize that the first suggestion may not be practical/possible, because the error occurs during compilation... and there is no point looking at comment lines during compilation. Heopfully, you could at least implement the second option though... |
Get my plugins here: http://www.magnumsworld.com/muds/
Constantly proving I don't know what I am doing...
Magnum. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Tue 25 Dec 2001 11:50 PM (UTC) |
| Message
| Are you sure it doesn't count comment lines? I think the line number is supposed to be accurate, it is reported from the script engine (eg. vbscript.dll) which I can't alter.
Possibly the problem is that you have line wrapping enabled in the notepad, that will throw out the line counts.
Turn off line wrapping as a notepad option (or use an editor that lets you do that) and then the line count should be accurate. Otherwise each wrapped line counts as a "line" in the notepad, but not a line to the script engine, as the wrapping is "soft".
Possibly that discrepancy is what is making you think comment lines are not counted. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Magnum
Canada (580 posts) Bio
|
| Date
| Reply #2 on Wed 26 Dec 2001 10:46 AM (UTC) |
| Message
| Eek!
You were absolutely correct! I hate reporting errors that are *my* screw-ups. LOL!
I turned off Wordwrap in my text editor, then entered gibberish on a new line (near the end of my file), and the error handler reported the same line my text editor indicated. :)
I use a text editor called "MetaPad", if anyone is curious. |
Get my plugins here: http://www.magnumsworld.com/muds/
Constantly proving I don't know what I am doing...
Magnum. | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
10,881 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top