Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
NeoFryBoy
USA (42 posts) bio
|
| Date |
Sat 24 Jun 2006 07:17 AM (UTC) [ quote
] |
| 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 (18,770 posts) bio
Forum Administrator |
| Date |
Reply #1 on Sat 24 Jun 2006 08:07 AM (UTC) [ quote
] |
| 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.
1,246 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )