Quantcast
WoWInterface - View Single Post - help with table (savedvariabiles)
View Single Post
05-26-18, 08:13 PM   #1
Taet
A Deviate Faerie Dragon
Join Date: Jan 2010
Posts: 17
help with table (savedvariabiles)

i need this table format :
Data={
--[mapID]
[197]={
-- [npcID] = XXX
[91783]=1.94175,
[95861]=1.94175,
[100216]=1.94175,
},
[199]={
[98370]=1.33333,
[98368]=1.33333,
[98366]=1.33333,
},
}
How i add new "mapID" , or "npcID with value" to existing mapID.

I trying with:
local mapID, npcID = 999, 2222
local tmp = {[mapID] = {[npcID] = 1.1111}}
tinsert(Data, tmp)
This dont insert to existing mapID but create new array with to same mapID, and tinsert(Data[mapID], .... bad argument #1
  Reply With Quote