Jump to content

2 (or more) parts to a function


Recommended Posts

Tryed that, but still get the error. Let me show you it exactly. Since I am using pictures.

Error: lua:2: '}' expected (to close '{' at line 1) near '='

local hello = { 
    'hi.png' = true, 
    'hey.png' = true, 

Strings must use [ ], e.g.:

local hello =  
    ['hi.png'] = true, -- this needs [] as it is a string 
    bye = true -- this doesn't need [] as it is a variable 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...