-
Posted by Cowski on Mon, 16 Feb 2009 21:36:51
I'm coding in, verbatim, what's on the top of this page:
local PlayerFramePlus = {}
-- This is commented out code.
function PlayerFramePlus:Initialize()
Message("PlayerFramePlus Loaded!")
end
PlayerFramePlus:Initialize()
When I run it I get an error on load on line #4. The "function PlayerFramePlus:Initialize()" line. What am I missing or doing wrong. I tried spaces before/after the semicolon, change case, everything I can think of.
Please advise! Thanks!
-
Posted by Cowski on Mon, 16 Feb 2009 21:36:51
I'm coding in, verbatim, what's on the top of this page:
local PlayerFramePlus = {}
-- This is commented out code.
function PlayerFramePlus:Initialize()
Message("PlayerFramePlus Loaded!")
end
PlayerFramePlus:Initialize()
When I run it I get an error on load on line #4. The "function PlayerFramePlus:Initialize()" line. What am I missing or doing wrong. I tried spaces before/after the semicolon, change case, everything I can think of.
Please advise! Thanks!
-
Posted by Cowski on Mon, 16 Feb 2009 21:59:38
I'm sorry, I didn't include the error I'm getting...I'm tired:
"Attempt to index global 'PlayerFramePlus' (a nil value)"
Hope that helps. Again, I'm sorry I didn't include that in my original post.
-
Posted by Cowski on Mon, 16 Feb 2009 22:11:17
I finally got it! Managed to have a tiny case typo in there. Had my wife look it over cuz my eyes were getting stupid.
-
Posted by Aesir on Tue, 24 Mar 2009 08:32:58
I believe the two references on p234 to the Message() function should be message(), with the lower case 'm'.
-
Posted by jnwhiteh on Tue, 24 Mar 2009 10:37:41
Yes, this was a typographical error that snuck in during production.