我在Computercraft上收到了bios 367错误

时间:2015-07-29 04:01:27

标签: lua minecraft computercraft

在我的计算机工艺程序中,我将在机场地图的控制塔中使用,我收到的信息如下:

  

bios:367:[string" AirportCommand"]:15:语法错误

以下是我的所有代码,如果您发现任何错误,请告诉我:

local Landing_open = true
rednet.open("top")

while true do

  id, message, distance = rednet.receive()

  if message == "Requesting Landing" and Landing_open == true and distance<500 then
    rednet.send(id, "Landing is granted. Please respond with Landing finished when you exit the runway.")
    Landing_open = false

   elseif message == "Requesting Landing" and distance>=500 then
     rednet,send(id, "Landing is not granted. Please try again when you are closer to the airport,")

   elseif message == "Requesting Landing" and Landing_open == false then
    rednet.send(id, "Landing is not granted. Please try again later.")

   elseif message == "Landing Finished" then
    rednet.send(id, "Roger that")
    Landing_open = true

1 个答案:

答案 0 :(得分:0)

首先:如果这是您的完整代码,则无法正常工作!您不会关闭ifwhile结构。

尝试将代码扩展两个end。一个关闭if结构,另一个关闭while