View Single Post
12-10-11, 07:06 AM   #12
Torhal
A Pyroguard Emberseer
 
Torhal's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 1,196
This isn't even valid Lua, and since it's likely code which is in the main chunk, WoW isn't loading it (and this is why you aren't getting errors).

Code:
local 1000=EditMacro()
The variable "temp1" was being assigned with the return value of the GetNumMacroIcons function (which is a number), and then being used in various places in the code so as to not call the function repeatedly. Phanx was merely saying to get rid of the function usage and use a hard number. Nowhere was it stated to create a variable named "1000" (which, again, is not valid Lua) nor to assign the return value of an EditMacro function to it.

Get rid of the code line I listed above, and it should (hopefully) Just Work (TM).
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of NPCScan and many other AddOns.
  Reply With Quote