小编Hap*_*ppy的帖子

<name>预计接近'end'错误

当我运行我的lua代码时,我得到了'end'附近的错误'name' 12号线

这是代码:

local i = 1
local plr = game.Players.LocalPlayer


function start()
repeat
    wait()
    game.ReplicatedStorage.addpoints:FireServer()
until i == 2
end

function end()
i = 2
end

plr.Chatted:connect(function(message)
if message == "start" then
    start()
elseif message == "end" then
    end()
end
end)
Run Code Online (Sandbox Code Playgroud)

任何修复?

lua

0
推荐指数
1
解决办法
979
查看次数

标签 统计

lua ×1