|
So, I have a few weeks off, and thought I'd give addon building a chance. As suspected I got stuck quite soon, and thought I'd ask here if anyone can tell me what's wrong. I have managed to create the "Hello, World!" example from thewarwiki:WAR API site and my next step was to read some lua tutorials. The first thing I tried was to assign a variable and check if it is true, and if so print the "Hello, World!" message, however, this simple code seems to be out of my leage, so can anyone give me a pointer as to what I've done wrong?
The lua file looks like this:
HelloWorld = {} function HelloWorld.PrintMessage() local sune = 1 if sune == 1 then EA_ChatWindow.Print(towstring("Hello World!")) end
|