WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Does my variable exist or not??! (https://www.wowinterface.com/forums/showthread.php?t=881)

Sathanas 06-08-05 03:53 PM

Does my variable exist or not??!
 
Im flat out lost.

Im attempting to save a table into savedvariables for character-specific settings for a mod. However, theres a few problems.

First, the table seems to be in a state of limbo. I have 2 if statements checking the value of this table to determine something, and it WORKS. As in i can run my slash command that changes modes, and it works correctly, meaning the table is giving correct data to the if statement (there is no else, its one or the other so nil should do nothing, correct?)

However, in the game if i try to do /script message(Thingy[PlayerName]) the game tells me that the table is a nil value. wtf?

Whatever data is in the table is also never being saved to savedvariables.

Kaelten 06-08-05 04:04 PM

you put it in the saved variables line in your TOC right?

Gello 06-08-05 04:22 PM

The table sounds local. Remove the local tag and it should be visible with /script message(etc)

diiverr 06-08-05 04:27 PM

I think I'm having a similar problem over here: What am I missing?

:confused:

Sathanas 06-08-05 08:08 PM

Gello got it, i did indeed have it set to local. I coulda sworn i had it NOT local before, but i got errors, and stuck Local on there and it worked (to the point it was at)

Thank god, now at least i know how to save per-character stuff. That was one thing i was really having trouble with. Thanks for the help!


All times are GMT -6. The time now is 12:26 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI