Page 1 of 1
Whats causing this error?
Posted: Sun Feb 24, 2013 3:32 pm
by SirFotherington
- Untitled.png (27.1 KiB) Viewed 1045 times
Im getting this error in my coding. What is causing it/how would I fix it?
Re: Whats causing this error?
Posted: Sun Feb 24, 2013 3:50 pm
by micha
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:
Code: Select all
function love.mousepressed(x,y)
if gamestate == "menu" then
button_click(x,y)
end
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.