View Single Post
03-22-24, 09:33 AM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,892
Code:
MyAddonDB.lastLogoffTime = time
Should probably be
Code:
MyAddonDB.lastLogoffTime = time()
for the time function rather than a non-existant variable because you're not passing anything to SaveLastLogoffTime (and if you were it would just be time() presumably.

That and lua is case sensitive. MyAddonDb in the .toc is not the same as MyAddonDB in the code.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 03-22-24 at 09:38 AM.
  Reply With Quote