-6

因此,如果我的分数高于 5,则 gotoSceneA elseif gotoSceneB。
但我收到此错误:

game.lua:439: unexpected symbol near '..'*

如果我删除..我得到:

game.lua:443: 'then' expected near 'end'

我的代码:

if .. score > 5 then
    storyboard.gotoScene("bonus", "fade", 400)
elseif
    storyboard.gotoScene("gameover", "fade", 400)
end
end
4

1 回答 1

3
if score > 1000 then
    storyboard.gotoScene("bonus", "fade", 400)
else
    storyboard.gotoScene("gameover", "fade", 400)
end
于 2013-09-15T17:12:18.053 回答