News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: goto issue  (Read 2120 times)

0 Members and 1 Guest are viewing this topic.

Offline Razc01na

  • Lord Slayer
  • Full Member
  • ***
  • Posts: 156
  • Gender: Male
  • Doom is life
    • View Profile
goto issue
« on: March 08, 2021, 07:02:36 AM »
Is it just me or does the lua compiler we have really hate the goto instruction?

For some reason It asks for a '=' in between the goto and the label:

luac: script.lua:56: `=' expected near `label'

Are we restricted from using goto in our scripts?
« Last Edit: March 09, 2021, 04:10:23 AM by Razc01na »

Offline Razc01na

  • Lord Slayer
  • Full Member
  • ***
  • Posts: 156
  • Gender: Male
  • Doom is life
    • View Profile
Re: goto issue
« Reply #1 on: March 14, 2021, 03:06:24 PM »
Forget about it...
goto was only added after lua 5.2...
My bad  :blush: