• 1 page(s)
Noob question

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

Report this thread post

Ahh, found the debug thing ingame, there was simply an "end" missing =P

/solved =)

Report this thread post
  • 1 page(s)
Subscribe to this thread: (you will receive emails when new posts are made)