Originally Posted by suicidalkatt
That being said, a global with that name is just asking for trouble.
|
To further expand on this, all addons share the global namespace along with the default UI. Generic names like
minduration is likely to cause problems with other addons because they would be accessing the same variable, causing data corruption. This is why it's standard practice to prefix any globals with the name of your addon.
Originally Posted by Benalish
This code returns this error:
unexpected symbol near "["
in correspondence of line
enabled = ["min"..option].cbutton:GetChecked(),
Is a concatenation lua problem? There is a solution?
|
This error has nothing to do with concatenation. The brackets
[] are used as indexing operators on tables and you haven't specified a table to index.