|
Post by doctop on Mar 28, 2022 21:27:19 GMT
Hi, why I have an error here? table.insert is not working ?  Ankulua 9.0.2 trial
|
|
|
Post by Mercobots on Mar 28, 2022 22:28:17 GMT
Hi, why I have an error here? table.insert is not working ?  Ankulua 9.0.2 trial this is normal cuz you are overwriting the table obj, as you can see table is already reserved to lua! try this instead tbl = {} tbl[1] = "1111" tbl[2] = "2222" table.insert(tbl,"3333") but this is better local tbl = {"1111","2222"} tbl[#tbl +1] = "3333"
|
|
|
Post by doctop on Mar 29, 2022 9:59:33 GMT
this is normal cuz you are overwriting the table obj, as you can see table is already reserved to lua! try this instead tbl = {} tbl[1] = "1111" tbl[2] = "2222" table.insert(tbl,"3333") but this is better local tbl = {"1111","2222"} tbl[#tbl +1] = "3333" Ops!  Thank you, bro!
|
|