View Single Post
07-07-12, 06:48 PM   #1
TheRealArkayn
A Deviate Faerie Dragon
 
TheRealArkayn's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 15
Add-On Coding Help? Saved Variables

Can someone with more coding experience than me please have a look at what I've done so far? I'm trying to use something like this:

Code:
-- If the variable isn't saved from last session...
if not (CM_db) then
     -- ...create the table
     CM_db = {}
end
print(type(CM_db)
...and the print() message I'm using to debug the program prints "nil" rather than "table."

I've attached a link for my add-on and I'm hoping someone can tell me why my debug message isn't printing "table." I need the table to save variables between sessions but I'm obviously doing something wrong. Please help. =)

https://dl.dropbox.com/u/1118648/CurrencyMonitor.zip

Here is the PasteBin: http://pastebin.com/RZq6YkY2
  Reply With Quote