of     1   

ColdSmoke
#161524690Monday, May 04, 2015 4:08 AM GMT

I have this local Songs = { ['Alladins Lamp'] = { "242303416", }, ['Malibou Barbie'] = { "242303783", }, } print (#Songs) and it prints 0, shouldn't it print 2?
Friedtjof
#161525744Monday, May 04, 2015 4:35 AM GMT

local Songs = {} Songs['Alladins Lamp'] = { "242303416", }, Songs['Malibou Barbie'] = { "242303783", } Try that table structure. Lord of all things, breaded and unbreaded.
chimmihc
#161528330Monday, May 04, 2015 5:48 AM GMT

# is the length operator, it gets the character amount of string and the amount of array indexed values in a table. local TableLength = function(tab,recurse) local len = 0 function search(t) if type(t) == "table" then for i,v in next, t do len = len + 1 if recurse and type(recurse) == "boolean" then search(v) end end end end search(tab) return len end local tabl = {hi = 9,p = {1,34,{hahaha = 0}}} print(TableLength(tabl)) --> 2 print(TableLength(tabl,true)) --> 6 Which may seem a bit weird but you must remember that the table(s) inside the table are still values. I script -~ chimmihc
ItachiGFX
#161786212Saturday, May 09, 2015 12:50 AM GMT

Idk

    of     1