vinceops
(vince)
#1
This function is in a module script, when I call it in a script it doesn’t print anything. How should I go about printing all items in a dictionary?
The “i” in for i,v should give ‘Name’ and ‘Test’ as it does with my other functions that work.
As of now it prints an empty string, with no text at all.
1 Like
vinceops
(vince)
#3
Prints nothing at all when I call the function.
wethaxie
(Wethrox)
#4
Change the table.insert(tb, i)
to table.insert(tb, v)
.
Synnwave
(Synnwave)
#5
The OP is trying to get the index of the dictionary, not the values.
Synnwave
(Synnwave)
#6
Could you show a picture of the output? I don’t see anything wrong with this script.
pexf
(pexf)
#7
Show us your print function
30charzzz
Are you sure you’ve got your output settings set to show tables?
Old thread but, it should be self.AllItems
instead of Items.AllItems