lua-table
Lua: 'pairs' doesn't iterate over [1]
I quickly had to debug something, and wrote following function: function dumpTable(t) for i,v in pairs(t) do[详细]
2023-04-11 14:41 分类:问答Lua: How to execute different blocks depending on conditions?
I have this table: no_table ={ {a=\"3\", b=\"22\", c=\"18\", d=\"ABC\"}, {a=\"4\", b=\"12\", c=\"25\", d=\"ABC\"},[详细]
2023-04-02 10:56 分类:问答Images in an array, not spacing correctly
The shapes are at the top of the image. http://picturepush.com/public/6472916 The code looks like this:[详细]
2023-04-02 04:22 分类:问答table inside table in Lua
How can I get the data which is a table inside a table, i mean like this: t = { {a, b, c}, {d, e, f} };[详细]
2023-03-22 18:56 分类:问答Lua - convert a table into a comma separated list
I need to convert a ta开发者_运维知识库ble into a comma separated list in order to save it to a text file. Is there a built in method for doing this in Lua?If your table is an array, you can use table[详细]
2023-03-18 01:26 分类:问答Can not change value of "global" lua table
I have a .lua script file and i\'m having a problem in something like that: myTable = {} function changeMyTable(index,value){[详细]
2023-03-17 01:40 分类:问答Using table keys with periods in Lua
In Lua, assigning a table with a specified key might go like this: a = { x = 4 } ...or perhaps like... a = { [\'x\'] = 4 }[详细]
2023-03-15 22:29 分类:问答lua - table maintenance (particle system related)
The update() function below gets called on every frame of a game. If the Drop particle has y value greater than 160 I want to remove it from the table. The problem is that I get \"attempt to compare n[详细]
2023-03-10 01:15 分类:问答How can I safely iterate a lua table while keys are being removed
In my main coroutine, I am removing or adding entries from a table depending on user operations. In the background, I\'d like to iter开发者_如何学Cate over the entries in the table. I don\'t mind part[详细]
2023-03-08 21:20 分类:问答Lua - table.insert not working
Why isn\'t t:insert(9) working in Lua? (I want to append a value of 9 to the end 开发者_JS百科of the table)[详细]
2023-03-08 03:30 分类:问答