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
➜ General
➜ Odd Plugin Error
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| NeoFryBoy
USA (42 posts) Bio
|
Date
| Sat 24 Jun 2006 07:17 AM (UTC) |
Message
| Not sure this is a bug yet, so I'm posting it here.
I loaded a plugin, and it returned this error
Error number: -2146827263
Event: Execution of line 145 column 30
Description: Expected end of statement
Line in error:
world.ansinote ansi(31) & ansi(1) & "You're out of " & world.getvariable("chpot") & "(s)!!!"
Called by: Immediate execution
I've been staring at it fer the past twenty minutes and see nothing wrong with it. As you can see it's failing on the first semicolon, and when I put it into the command box and replace the & with & it runs perfectly fine.
It's in the script section of the plugin on a line of it's own.
Also, how exactly does the error engine determine waht line is failing? I made a script that numbers each line, and that line is on line 467 in the plugin, and line 4 of the scripts block. | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sat 24 Jun 2006 08:07 AM (UTC) |
Message
| If you are using the CDATA blocks (which it sounds like you probably are) then you don't need to turn & into &.
In other word, this is OK:
<script>
<![CDATA[
AnsiNote ANSI(31) & ANSI(1) & "You're out of " & GetVariable("chpot") & "(s)!!!"
]]>
</script>
However if you don't use CDATA then you need to do it, so it would look like this:
<script>
AnsiNote ANSI(31) & ANSI(1) & "You're out of " & GetVariable("chpot") & "(s)!!!"
</script>
Quote:
Also, how exactly does the error engine determine waht line is failing?
If you have this line (which the plugin wizard normally adds):
<include name="constants.vbs"/>
... then the line numbers will be out by the number of lines in that file (149 in my copy).
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | 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.
9,486 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top