
If you want to learn more, just google for lexical scoping in lua and you'll surely find some better explanations than I could ever give you. Lau error Bartender4 when using cool downs Support Technical Support ßja-arthas 18 March 2021 03:17 1 Message: tender4libsLibButtonGlow-1.0LibButtonGlow-1.0. There's more to it than that, but this is about all you need to know to solve your problem. Here are the list of the addons I am using: 1. I tried to re-install all my addons twice and updated everyone of them but the result is always the same. Message: ADDONACTIONBLOCKED AddOn Bartender4 tried to call the protected. Environment BarTender 2019 Problem The BarTender System Service is required for the BarTender Suite to operate. Error Message : Cannot Open BarTender System Service service on computer. Environment BarTender 2019 Problem The BarTender System Service is required for the BarTender Suite to operate. 1.unknown, lua errors on just about every addon. When opening BarTender, you get the following error message: Couldnt Connect to BarTender System Service. Error Message : Cannot Open BarTender System Service service on computer '.'. Here's an example of what I mean: local foo = 20 Hi guys, I have spent last 2 months with this problem (LUA error keeps showing on my screen). When opening BarTender, you get the following error message: Couldn't Connect to BarTender System Service. Note that the function will save the variable, not its value when the function is created. Or declare it with just local player above the function, then you can assign a value to it further down.Either remove the local and make player a global variable (easy to do, but global variables are the devil and you shouldn't use them lightly).your gameplay experience will suffer ignoring errors. yes you can just turn errors off but that's about as recommended as putting fingers in your ears and going 'lalalalalala'. and now you can diagnose errors properly in future. Since that global does not exist, it's treated as nil, and when you attempt to index it Lua complains. I have tried using /console as well to disable the LUA errors, but the errors. So look up Bugsack and BugGrabber on curse (need both, one is the core other is GUI). You declare the player variable after the function, so by the time the function is declared, no local variable player exists, thus it compiles a function that accesses a global player variable. That's basically what happens in your example. Print(bar()) - prints 30, because it doesn't know the local foo 1 I’m having 16 LUA errors whenever I /reload and I was wondering if it was possible to fix them. Print(tostring(bar())) - prints nil because bar doesn't know foo foo does not exist as a local yet, so Lua tries accessing a global foo

In your case it's the other way around function bar() return foo end Print(bar()) - prints 20, bar still knows about foo Print(tostring(foo)) - prints "nil", foo is out of scope
