- menu.love
- (2.54 KiB) Downloaded 155 times
Whats causing this error?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 11
- Joined: Sat Feb 23, 2013 11:29 pm
Whats causing this error?
Im getting this error in my coding. What is causing it/how would I fix it?
Re: Whats causing this error?
This tells you that you need to add an "end" somewhere. To be more precise, lua believes, that the function, that is defined in line 42, does not have and "end".
This is in line 42 and following:
You forget the "end" of the if-statement, so lua believes the "end" there belongs to the if-statement and the "end" for the function itself is missing.
This is in line 42 and following:
Code: Select all
function love.mousepressed(x,y)
if gamestate == "menu" then
button_click(x,y)
end
Check out my blog on gamedev
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 6 guests