Skip to content
#4091
Auto-translated
Good day! Is it possible to create a self-expanding table if I don't initially know the number of rows or if it is large enough that declaring it entirely in code with 100 rows would be impractical? For example: Table = {}; -- declare a global variable as an array (table) for i = 1, 100 do Table[i]["a"] = 'a'; Table[i]["b"] = i; ... end; With the current structure, the game freezes completely. The same thing happens if you try to add another row to an existing table (i.e., you are referencing a non-existent index). Lua guides contain constructs that the game doesn't even recognize!