- Joined
- Jul 7, 2007
- Messages
- 4,049
- Reaction score
- 238
(This script is for the latest TFS)
Hey All
I'm trying to do a big table, but for some reason, I cant seem to get from it what I want, if anyone could shine some light into the matter I'd appreciate =)
So, trying to make it short, I have a table with many numbers that'll redirect to Player Storages to get information, but when it reaches the local Level = ... it gives the following error:
(Line 63 is the local Level = ...)
Can anyone help me with this "small" problem?
Thanks
Quetzalma
Hey All
I'm trying to do a big table, but for some reason, I cant seem to get from it what I want, if anyone could shine some light into the matter I'd appreciate =)
PHP:
SUMMON = {
["FIRE"] = {
NAME = 12503,
LEVEL = 12504,
EXP = 12505,
HP = 12527,
LEVEL2 = 20,
LEVEL3 = 50,
MOVES1 = {"Fire Exori","Fire Beam"},
MOVES2 = {"Fire Ball","Great Fire Beam"},
MOVES3 = {"Great Fire Ball","Hells Core"}
}
}
PHP:
ACTIVE_SUMMON = 12501
local Type = getPlayerStorageValue(cid,ACTIVE_SUMMON)
print(Type) --It says "FIRE"(without the "") on the console
local Level = getPlayerStorageValue(cid,SUMMON[Type].LEVEL)
So, trying to make it short, I have a table with many numbers that'll redirect to Player Storages to get information, but when it reaches the local Level = ... it gives the following error:
PHP:
data/lib/Summon System.lua:63: attempt to index field '?' (a nil value)
Can anyone help me with this "small" problem?
Thanks
Quetzalma
Last edited: