Thread: Menu getFunc
View Single Post
01/29/17, 02:35 AM   #4
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 577
Originally Posted by Hoft View Post
I have a problem with simple code ((
My menu allways show only default value!
setFunc works right and changes variable
ZO_SavedVars works right and load/saves variable
When I change variable by menu, key bind, slash command, or any other way and returns to menu… it allways show default value! Where is my mistake?
The problem is not directly with your code.
Addon is a global variable and "Addon_Settings" is not really a unique name. If you have to save Addon.Vars to a local variable, you have a global variable conflict.
Somebody else is using Addon as a global variable. Make Addon local.
  Reply With Quote