Use Brackets for keys in PrintTable
To avoid confusion when there is [357] and ["357 "] for example.
You are assuming that keys are always either numbers or strings, the concatenation will throw an error with other key types.
You are assuming that keys are always either numbers or strings, the concatenation will throw an error with other key types.
you are right i totally missed that, i will try fix/comply with that as soon as i get to my computer again (thanks for the info tho)

Maybe this is a bit cleaner?
if ( isstring( key ) && key != key:Trim() ) then key = "[\"" .. key .. "\"]" end
Maybe this is a bit cleaner?
if ( isstring( key ) && key != key:Trim() ) then key = "[\"" .. key .. "\"]" end
I agree that this will fully fix the issue while adding less stuff to the console
but i may not be able to answer the question if it is cleaner as i also prefer consistency a bit (in that case the key could also be
Entity(1)["[\"Fuck \"]"] as there is no reference tho)
A fair point. I am not sure what to do about it, either way it's gonna be either confusing or just increase amount of irrelevant symbols on each line.
Also there is the same kind of issue with table to string, it doesn't correctly print keys