gpt4 book ai didi

lua - 什么是窗口 :94:arguments must be the same length stand for?

转载 作者:行者123 更新时间:2023-12-04 09:36:43 25 4
gpt4 key购买 nike

我试图弄清楚我做错了什么,但这是我唯一得到的错误。你能给我一些我可以寻找的提示吗?
错误发生在 Deutsch 时被选中,当 Englisch 时它工作正常被选中。

--Size 51,18
--Zeit: 75

w, h = term.getSize()




--OS.Start
function Haupt(Inhalt)
paintutils.drawFilledBox(1, 1, w, h, colors.blue)
paintutils.drawLine(1, 1, 6, 1, colors.white)
term.setTextColor(colors.gray)
term.setCursorPos(1,1)
term.write("MineOS")
paintutils.drawLine(1, 3, string.len(Inhalt), 3, colors.white)
term.setTextColor(colors.black)
term.setCursorPos(1, 3)
term.write(Inhalt)
term.setCursorPos(1, 1) --ACHTUNG POS ÄNDERN

end


while true do
local event, key = os.pullEvent( "key" )
if key == keys.b then
Deutsch = 0
Englisch = 1
break
elseif key == keys.c then
Deutsch = 1
Englisch = 0
break
end
end







if Englisch == 1 then
Haupt("You've chosen English. The system will start after the Tutorial.")
elseif Deutsch == 1 then
Haupt("Du hast Deutsch gewählt. Das System wird nachdem Tutorial starten.")

end
ComputerCraft 告诉我 window:94:arguments must be the same length .

最佳答案

ComputerCraft for Minecraft 1.7.10 有一个错误,它错误地处理了非 ASCII Unicode 字符的长度,因此它在 ä 上卡住了在 gewählt .它已在 ComputerCraft for Minecraft 1.12.2 中修复。我试图通过使用 blit 找到解决方法而不是 write ,但我没有成功。

关于lua - 什么是窗口 :94:arguments must be the same length stand for?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62543938/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com