optigreen
|
  |
| Joined: 20 Apr 2010 |
| Total Posts: 417 |
|
|
| 31 Jan 2013 08:10 AM |
I have been having trouble with an error report: 'eof' expected near 'else'
If anyone has advice I will gladly accept it.
~Optigreen |
|
|
| Report Abuse |
|
|
|
| 31 Jan 2013 08:12 AM |
Means you have too many or two little ends (I forget which one). Remember, you still need an end if you use "if blah then else" (so it would be "if blah then else end")
Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson |
|
|
| Report Abuse |
|
|
optigreen
|
  |
| Joined: 20 Apr 2010 |
| Total Posts: 417 |
|
|
| 31 Jan 2013 08:15 AM |
Thank you! I was thinking about that. I didn't think it worked because I got another error report after I fixed it but that was on line 120.
I would of pasted the code but it was way to long.
Thank you so much.
~Optigreen |
|
|
| Report Abuse |
|
|
|
| 31 Jan 2013 08:35 AM |
| Do you tab your scripts? If not, I'd suggest you do because it makes it easy to spot errors such as missing or too many ends. |
|
|
| Report Abuse |
|
|
optigreen
|
  |
| Joined: 20 Apr 2010 |
| Total Posts: 417 |
|
|
| 29 Mar 2013 01:03 PM |
| Ok thanks... I have a lot of code in one script most of the time. Sometimes 3000 lines. |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 29 Mar 2013 01:22 PM |
"Ok thanks... I have a lot of code in one script most of the time. Sometimes 3000 lines"
"3000 lines"
..not usual for a scripting language like Lua. Especially when you're programming in RBX.Lua |
|
|
| Report Abuse |
|
|