我在Computercraft上遇到BIOS 367错误 [英] I got a bios 367 error on Computercraft

查看:125
本文介绍了我在Computercraft上遇到BIOS 367错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的机场地图上的控制塔中使用的计算机工艺程序上,我收到一条消息,如下所示:

On my program for Computer craft that will be used in a control tower in my airport map, I got a message that looked like this:

bios:367:[字符串"AirportCommand"]:15:语法错误

bios:367:[string "AirportCommand"]:15: syntax error

这是我所有的代码,如果遇到任何错误,请告诉我:

Here is all my code please tell me if you see any errors:

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

推荐答案

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

First of all: If this is your full code it can't work! you don't close your if nor your while structure.

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

Try to extend your code by two end. One closes your if structure and one you while

这篇关于我在Computercraft上遇到BIOS 367错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆