Hi,
I’m having the following problem:
I have a variable “nav1frequency” which takes his value from the concatenation of two values from two tables. I put this variable in a function. I say: if the variable=11590 then nav1=baliza. Then inside the fuction I put a print to check if it is working properly. The “nav1frequency” changes properly when i change the counters, but nav1 always remain nil (even though 11590 and 11230 are displayed in “nav1frequency”.
Here is the code:
local nav1 local function n1f() nav1frequency=t1[counter1]..t2[counter2] if nav1frequency==11590 then nav1=baliza end if nav1frequency==11230 then nav1=baliza2 end print(nav1frequency,nav1) return n1f end Runtime:addEventListener("enterFrame", n1f)
Thanks in advance