so what it loads everything prints normally but restart button is the only thing that works when i click shutdown it dosen't do anything when it should shutdown
code
function dropmenu1() local menu1= { ["----------"] = {tcol = "green"; x = 1; xx = 11; y = 18; cmd = function() end}; [" Restart "] = {tcol = "green"; x = 1; xx = 11; y = 15; cmd = function() os.reboot() end}; [" Shutdown "] = {tcol = "green"; x = 1; xx = 11; y = 16; cmd = function() os.shutdown() end}; --[" Restart "] = {tcol = "green"; x = 1; xx = 11; y = 15; cmd = function() os.reboot() end}; ["----------"] = {tcol = "green"; x = 1; xx = 11; y = 14}; [" Start "] = {tcol = "green"; x = 1; xx = 11; y = 13}; } for v,k in pairs(menu1) do term.setCursorPos(k.x, k.y) print(v) end for k,v in pairs(menu1) do e = {os.pullEvent()} if e[1] == "mouse_click" then if e[2] == 1 then if e[3] >= v.x and e[3] <= v.xx and e[4] == v.y then v.cmd() else slc = 1 --drawdesk() end end end end end dropmenu1()
can any one see anything wrong with it?
Thx
Edited by danielsv03, 14 June 2017 - 05:53 AM.