Error when loading my pluging due to a trigger

Posted by Gore on Mon 21 Nov 2005 03:31 PM — 4 posts, 18,752 views.

#0
Line 9517: No closing ";" in XML entity argument "&" (problem in this file)

is the problem, my plugin loads fine before I add this trigger, then gives me that error afterwards. Any ideas?

Quote:
<triggers> <trigger enabled="y" group="qh:pipes" keep_evaluating="y" match="That pipe isn\'t lit\.$" regexp="y" script="found_unlit_pipe" sequence="100" > </trigger> </triggers>
Amended on Mon 21 Nov 2005 03:36 PM by Gore
#1
Just incase you need.. that trigger calls this sub

Quote:
sub found_unlit_pipe (a,b,wildcard) world.arrayset last_smoked & "pipe", "lit", 0 maintain_pipe end sub sub maintain_pipe if auto_pipes = 1 then if arrayget ("elmpipe", "filled") = 0 then fill "elm" end if if arrayget ("valpipe", "filled") = 0 then fill "val" end if if arrayget ("skupipe", "filled") = 0 then fill "sku" end if if arrayget ("valpipe", "lit") = 0 then light "val" end if if arrayget ("skupipe", "lit") = 0 then light "sku" end if if arrayget ("elmpipe", "lit") = 0 then light "elm" end if end if end sub
Australia Forum Administrator #2
What is line 9517?

Maybe the plugin is just too big? Your other post will help fix that. Is the script inside CDATA blocks? If not, this line might be the problem:


world.arrayset last_smoked & "pipe", "lit", 0


It might be trying to interpret & "pipe" ... as an entity name (like &lt; ).


#3
Thanks, I appreciate the assistance. I'll try to load it again after I split up my plugin.