copy and paste this google map to your website or blog!
Press copy button and paste into your blog or website.
(Please switch to 'HTML' mode when posting into your blog. Examples: WordPress Example, Blogger Example)
# vs table. getn () - Scripting Support - Developer Forum | Roblox table getn () is slower and was deprecated in luau More details in the official documentation Edit: I also found a topic in # resources a long time ago about why it is bad to use table getn But I don’t remember where it is anymore And you also need to increase how many items you add to the table in your benchmarking
c - Lua table. getn () returns 0? - Stack Overflow table getn (which you shouldn't be using in Lua 5 1+ Use the length operator #) returns the number of elements in the array part of the table The array part is every key that starts with the number 1 and increases up until the first value that is nil (not present) If all of your keys are strings, then the size of the array part of your table is 0
lua error: attempt to call a nil value (field getn) I get the error: attempt to call a nil value (field 'getn') I have tried a few things suggested here, but I am not sure how to fix this so was wondering if there is an easy fix
Table. getn () Deprecated? - Scripting Support - Roblox Hey, I’m confused whether table getn() is deprecated After conducting some research, people are saying that it’s faster than using #, however that it’s deprecated It’s still in Roblox’s API Reference, though Is this deprecated?
How to get number of entries in a Lua table? - Stack Overflow table insert also isn't special, except that you're letting it create numerically-indexed entries in the table You could replace those two table insert calls with mytable[1] = element1 and mytable[2] = element2 and the result of this code would be exactly the same Which is why table getn(mytable) returns 2
I have problem with table. getn () - DevForum | Roblox Hello, I’m having problem with table getn (myTable) and #myTable for getting number of entries in table I’m having a table that has another talbes in it Example: local myTable = { -- This could be like "playerData" ["…