View Single Post
11-28-10, 10:12 AM   #1
Canities
A Wyrmkin Dreamwalker
Join Date: Oct 2007
Posts: 54
Frame moving addon help

Hello fellow coders,
I'm after a little lua help here if anyone would be happy to look at an addon i've created and trying to alter.

I have 2 setups for my UI, Healer and DPS/Tank. For this i relocate UI elements in diffrent places, and to do that i have come up with this simple addon: pastebin link 1 which works a treat and throws no errors.

So, what i have tried to do is to split this into seperate class specific script files saved in a sub directory within the addon folder so that its easier to alter locations per class.
So far i have: pastebin link 2 for the main addon, pastebin link 3 for the toc file and pastebin link 4 for the hunter script file.

The issue I'm having is on logging in or reloading my ui I get these 2 error meessages:
Code:
1x !aframes\scripts\hunter.lua:171: '<eof>' expected near 'end'
and
Code:
1x !aframes\!aframes.lua:10: '=' expected near 'elseif'
and the addon stops working.

I've been throught he code multiple times and cant for the life of me work out what i'm doing wrong with the code1. I've even tried looking on lua programming sites to try and work out where i am going wrong but to no avail. I would be extremely greatfull if someone could point me in the right direction to solving this problem.

Thanks

Cani

*edit*
in writing this i did notice 2 missing ')' in the script file but after fixing that it still throws the same errors.

Last edited by Canities : 11-28-10 at 10:14 AM.
  Reply With Quote