Player (193)
🇯🇵 Japan
Joined: 8/4/2013
Posts: 126
Location: 🇯🇵 Japan
Can't we use the goto statement? I'm using ::exit:: for exit. NLua.Exceptions.LuaScriptException: [string "main"]:211: no visible label 'exit' for <goto> at line 207 function I2() if f1 == 2 then goto exit end end goto分はは使えませんか?exitは ::exit:: にしてます
Emulator Coder, Judge, Skilled player (1131)
Location: California
Joined: 2/26/2020
Posts: 864
Location: California
You cannot "jump out" of the function with goto in lua. If you use goto within a function, you can only use labels that are placed within the function.
Player (193)
🇯🇵 Japan
Joined: 8/4/2013
Posts: 126
Location: 🇯🇵 Japan
thanks

1763356019