Hi guys!
When I was inserting strings in a table following worked like a charm, but when I insert numbers in form of array I get a: "attempt to index field ‘?’ (a number value) stack traceback:…"
local myButtons = { 3, 1, 2} function checkButtonsValue() for i = 1, #myButtons do if (myButtons[i] == 1) then print("ONE") elseif (myButtons[i] == 2) then print("TWO") end end
Why I cannot compare what number is in my table like this?
Basically I am trying to make a number array inside a table, a check its order/suffle it, and etc…
Merry Christmas and all the Best for incoming holidays!
Goran