小编use*_*142的帖子

如何在此代码中找到缺少的括号?

当我运行代码时,它告诉我有一个错误')' expected near '=':

function restartLvl()
    for i = 1, #balloonTexts do
        display.remove(balloonTexts[i])
        print ("restart level")
    end

    score.text = '0'
    ballRemain.text = '3'
    balloonText = {}
    createBalloons(1, 3)

    if (askUser.isVisible = true) then  --this is the line where the error occured
        askUser.isVisible = false
    end

    if (yesBtn.isVisible = true) then
        yesBtn.isVisible = false
    end

    if (noBtn.isVisible = true) then
        noBtn.isVisible = false
    end
end
Run Code Online (Sandbox Code Playgroud)

我不知道它是如何仍然缺少' )',因为我关闭了所有括号.

lua coronasdk

5
推荐指数
1
解决办法
100
查看次数

标签 统计

coronasdk ×1

lua ×1