So I have a _G table and it goes like
_G.TrackNums = { ['abc'] = "blahblah" }
but when I try to add something
table.insert(_G.TrackNums, [""..a] = "1 , Test")
it won't work help me please because i need this to work lol
I think that what you are trying to do is _G.TrackNums[""..a] = "1 , Test"
. The insert function is for inserting values with numerical indices. For example, table.insert(_G.TrackNums , 5 , "1 , Test" )
would insert the string with an integer index of 5.