View Single Post
02/03/23, 09:56 AM   #15
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,000
You should "read" the error messages, they tell you at which line something is tried to index which is nil (tried to index means there is a table which is nil and you do something like table.data) or a variable is nil etc.

Where is RidinDirty.variableVersion defined? If you do not define it it will be nil and thus your SV won't have a version and not save.
You need to define variables and functions before you can use them!

Btw changing the SV version number will reset your SV data too! So keep that unchanged once released, unless there is the need to reset them, or your users will get angry with you :-)


And you do not need to call this twice:
EVENT_MANAGER:UnregisterForEvent("RidinDirty", EVENT_ADD_ON_LOADED)
Once is enough.
  Reply With Quote