Help with Error
Hey guys im working on a mod i used to maintane way back when (last version was 30100)
i got it 98% working still one error and a few tweeks to do yet anyway im getting a error and i cant figure out how to fix it Here's the error Code:
Date: 2011-06-04 03:45:06 from the Lua (line 718 is highlighted) Code:
function SetWrangler_OnUpdate(self, elapse) Code:
<OnUpdate> |
Silly question perhaps, but when declaring it via xml does it have to literally be elapsed for it to work?
And are there any errors in FrameXML.log? |
Quote:
Quote:
|
<OnUpdate function="SetWrangler_OnUpdate"/>
|
Code:
<OnUpdate> Before, "elapse" was nil because the OnUpdate function has no argument/variable called 'elapse' but a argument called 'arg1'. Quote:
e.g.: SetWrangler_OnEvent(self, event, ...) '...' contains all following parameters/arguments. LINKS: http://www.wowpedia.org/UIHANDLER_OnUpdate http://www.wowpedia.org/Using_OnUpdate_correctly |
1 Attachment(s)
i tried both still getting the error, i added the mod im working on if anyone wants to take a look at it.
|
Your original code would have worked if you had written elapsed instead of elapse. The suggestion p3lim came with will also work, but in the zip above you have defined your OnUpdate handler twice.
The first suggestion humfras came with isn't correct, as arg1 doesn't exist anymore. This is also your current second definition of OnUpdate, so it overrides the correct one. Also, I would recommend you to tell people how they can recreate the error, especially when you hand them a couple of thousand lines of Lua and XML. :) |
ok i got the error sorted thanks for the help, the next problem is that when you click the link button no items are linked to the selected channel.
|
Quote:
|
Quote:
|
All times are GMT -6. The time now is 11:55 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI