i was just messing around with tostring() and i put a table in it and i got this code
“table: 0x360973f3d5e7b1b8” i think i know a service that makes these, not sure though please tell me how i could read this though!
Normally the output window of your studio can easily let you read all of the contents. You can check a table’s values by using this:
for i,v in pairs(tableHere) do
print(i,v)
end
If no values appear from this, the table is empty.
The hexadecimal number next to “table” is basically just a unique identifier.
by tostring certain datatypes will result in different things happening but for a few certain datatypes it will return the memory address. Those certain datatypes are the following: “table”, “userdata”, “thread”, and “function”.
The main two that have any real use to when tostringing/printing them are “table”, and “userdata” because they support the use of metatables which means they can be influenced by __tostring.
but anywho to sum it up tostringing a table will return it’s memory address. If you wish to read the contents of the table you can just use the following code:
for i,v in next, (referance to the table here) do
print(i, v)
end
if you need any more clarification I’d be happy to supply it
To read through the actual table instead of seeing the “id form” ig. you turn off log in output
under the 3 dots
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.