Posted 07 September 2014 - 10:09 PM
So here's my problem
When i run this code it says :"startup:7: attemp to call a nil. I've done this multiple time before and i just don't know why it does'nt work correctly this time.
Thanks for help
local function window()
--default of x, y value = 39, 12
local x, y = term.getSize()
local application ={"Tunnel 1x2"; "Tunnel 2x2"; "Tunnel 3x3"; "Tunnel 2x2adv"; "Mettre a jour"; "Charger Dernier"; "Configuration"}
local title = "Turtle Miner v.3.0"
term.setCursosPos((x - #title) / 2, 1) -- problem here
end
When i run this code it says :"startup:7: attemp to call a nil. I've done this multiple time before and i just don't know why it does'nt work correctly this time.
Thanks for help