你可以将代码修改为以下形式:

::label1:: print("1") ::label2:: print("2") for R1=0, 2, 1 do if R1==1 then goto label1 end if R1==2 then goto label2 end end

这样修改后,代码应该可以正常执行。

执行下面的lua代码1print12print2for R1=0 2 1 doif R1==1 then goto 1endif R1==2 then goto 2endend错误提示:usrlocallua-535luac53 scriptlua1 name expected near 1怎么修改。

原文地址: http://www.cveoy.top/t/topic/hY48 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录