computerbta.blogg.se

Lua table insert table
Lua table insert table







Same goes for storing strings in a standard global which is designed for storing numbers.

lua table insert table

So it's a bug that's being exploited to store custom strings. It also suggests that predefined variables are for storing words (strings) but are supposed to "limit the content of the variables" to a value in the drop down box. site does suggest standard (global) variables are for storing numbers. Please login or register to see this link. What I have found that, the global variables are good for numbers and predefined variable work excellent with strings. Please login or register to see this code. Please login or register to see this image. I want it to be populated with each month and the value.Īlso, the scene is started multiple times per day so the code should check if that month is already in the array and if it is just rewrite the value, otherwise insert the month and the value in the array. The problem is that every time the scene restarts the array will be empty again. Storing the data is the problem: I'd like to store the data in an array like above. The scene has as trigger the UBS value that reads the meter - every time the UBS is 1 it increments the global variable by 0.1 I've got the code that reads the meter and increments the global variable by 0.1 sorted out.

lua table insert table

The number after the equal sign is taken from a global variable that changes as a water meter runs every 100 liters. emoticons/default_smile.png" alt=":)" srcset=" 2x" width="20" height="20" />īasically what i'm trying to achieve is store some values in an array like array =.

lua table insert table

I have a problem with a piece of LUA code and i'd like to ask for help from the LUA gurus









Lua table insert table