OnPluginMXPerror - parameters

Posted by Beale on Sun 16 Jan 2005 10:59 AM — 2 posts, 12,427 views.

#0
It would seem that when OnPluginMXPerror is called, rather than having the parameters level, line, number, message, it puts all the values into the level parameter separated by commas.

Example:
function OnPluginMXPerror (level, number, line, message)
  world.Note(level)
  world.Note(number)
  world.Note(message)
  world.Note(line)
end


Produced this:
A,20000,884,MXP element: </event>
nil
nil
nil

Amended on Sun 16 Jan 2005 11:00 AM by Beale
Australia Forum Administrator #1
According to the help file and online documentation those 4 arguments apply to the main script file "mxp error" processing, but not the plugin processing. Just split them up at the commas.