Thread Tools Display Modes
10-18-10, 12:45 PM   #1
herka
A Defias Bandit
Join Date: Jun 2010
Posts: 3
lua/xml hide() help plz

well either im blind or really dont know what wrong.

xml:
Code:
<Scripts>
<OnClick>bq_hide();</OnClick>
</Scripts>
lua:
Code:
function bq_hide()
    bqbForm:Hide();
end
frame name is bqbForm just for the record.
Every time i press the button witch calles bq_hide() i get:
Code:
 [string "bqbForm:OnHide"]:1: attempt to index global 'this' (a nil value)
and i really cant find where did i go wrong or is it a new change since the patch.

tnx

herka
  Reply With Quote
10-18-10, 03:04 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
And that is all of your code? You don't even have "this" listed there.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
10-18-10, 03:20 PM   #3
Vrul
A Scalebane Royal Guard
 
Vrul's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 404
According to that error message the problem is in the OnHide script, which he didn't post for some reason.
  Reply With Quote
10-18-10, 04:06 PM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
That's what I was thinking.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
10-19-10, 01:47 AM   #5
herka
A Defias Bandit
Join Date: Jun 2010
Posts: 3
soz peeps as i said im blind

Code:
 
<OnHide>
    if ( this.isMoving ) then
    MyMod:StopMovingOrSizing();
    MyMod.isMoving = false;
    end
</OnHide>
this is part of xml that has been messin with me. just commented it and all works fine.
  Reply With Quote
10-19-10, 02:18 AM   #6
Xubera
A Cobalt Mageweaver
 
Xubera's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 207
change this to self
__________________
Chat Consolidate is the solution to any out of control trade chat. Ignore lines, throttle chat, consolidate posts!Follow the link to find out how!

▲ ▲ WoWInterface wont let me triforce >.>
  Reply With Quote
10-19-10, 03:00 AM   #7
herka
A Defias Bandit
Join Date: Jun 2010
Posts: 3
tnx alot

herka
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » lua/xml hide() help plz


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off