2 posts
Posted 19 May 2013 - 08:44 PM
I'm having the '<eof>' expected error for line 34 of my code :
http://pastebin.com/sNzX9rCu , but I can't find anything wrong with it. If anyone can help I would much appreciate it =)
Thank you very much in advance
-Curin
8543 posts
Posted 20 May 2013 - 12:37 AM
Split into new topic.
504 posts
Location
Seattle, WA
Posted 20 May 2013 - 12:45 AM
You spelled 'function' wrong on line 34 so the interpreter thinks that your entire program is closed by the 'end' which is supposed to close out your down() function.
7508 posts
Location
Australia
Posted 20 May 2013 - 12:46 AM
on line 31 you misspelt function and as such when you have the end (that you actually put there for the function) Lua thinks that you're ending the program, but then finds more code, hence it erroring saying that it expected End of File (eof).
Notice how in that pastebin link function isn't a different colour…. Syntax highlighting is our friend ;)/>
EDIT: Damn ninja's :ph34r:/>
Edited on 19 May 2013 - 10:46 PM
2 posts
Posted 20 May 2013 - 06:09 AM
thanks I thought it was a derpy mistake I was just really tired and it was all looking correct to me