我在computercraft中为我的操作系统键入脚本。当我启动该脚本时,出现错误:gui。 lua:52:“然后”就可以了。 请帮我。 我尝试删除然后再次输入,但无法正常工作,我尝试重新启动Minecraft,但代码再次无法正常工作。我该怎么做,我的脚本一直在工作? This is my error
--Variables
version = 1.0
running = true
--Images
_dt = paintutils.loadImage("/proxos/.backgrounds/dt")
--Booleans
_ms = 0
--Functions
clear = function()
term.setBackgroundColor(colors.black)
term.clear()
term.setCursorPos(1,1)
end
drawMenu1 = function()
term.setCursorPos(1,2)
term.setBackgroundColor(colors.white)
term.setTextColor(colors.red)
print("[Power]")
end
drawTaskbar = function()
term.setCursorPos(1,1)
term.setBackgroundColor(colors.blue)
term.clearLine()
term.setCursorPos(1,1)
term.setBackgroundColor(colors.lime)
term.setTextColor(colors.white)
term.write("[Menu]")
end
drawDesktop = function()
term.setBackgroundColor(colors.lightGray)
term.clear()
term.setCursorPos(1,1)
paintutils.drawImage(_dt,1,1)
end
stop = function()
clear()
running = false
term.setTextColor(colors.lime)
print("thanks for using ProXOS")
end
runTime = function()
while running do
event, button, x, y = os.pullEvent("mouse_click")
if _ms = 0 and button == 1 and x < 7 and y == 1 then --<-- i have then
drawMenu1()
ms = 1
elseif _ms == 1 and button == 1 and y == 2 and x < 7 then
stop()
end
end
end
init = function()
drawDesktop()
drawTaskbar()
runTime()
end
--Main Stuff
init()
我想启动我的脚本文件。继续工作。