Help with simple code
Hey, I've just started learning Lua and tried to make a simple addon for my rogue, but it didn't work. I tried debugging and I think the problem is in this part of the code:
Lua Code:
What I expect this code to do is spam my chat box for each COMBAT_LOG_EVENT_UNFILTERED event it detects, but nothing happens. I can't understand what I'm doing wrong and will greatly appreciate any assistance. Thank you! |
Code is "read" from top to bottom.
So at line 4 you set 'nil'. Move your function up or the setscript down. And make it local :) |
Lua Code:
Have you tried defining the function before you try to reference it? EDIT: Rilgamon beat me to it. |
Thank you both, that helped :)
|
All times are GMT -6. The time now is 03:12 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI