AceConfig OptionsTable Radio Help
Hello, i working my first time with AceConfig Options Table and AceDB,
if i press on one of the radio i got this error. Code:
attempt to index field 'repairMode' (a string value) Code:
local repairModeList = { Code:
self.db:RegisterDefaults({ Code:
repairMode = { |
Well you already set repairMode as a string ("1"), and then you try to reuse it as a table, which is bound to cause issues no matter what for what you're trying to do. :p
|
Quote:
so that i can check the code with like Code:
if (repairMode == "1") then |
When making option menus and stuff I like to name the variables after what they are; in this case it would be repairModeRadioButton.
That way you guarantee that there will be no conflicts with accidentally naming two variables the same thing. Maybe you can set some variables as local, too, but idk how Ace works and if it would allow it. |
Ok, thx for the tipp with the Variables names,
i test it a little bit an got a fix with Code:
repairMode = { |
All times are GMT -6. The time now is 12:53 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI