Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unexpected end of file?!? plz help..
Putmalk Offline
Senior Member

Posts: 290
Threads: 13
Joined: Apr 2012
Reputation: 15
#9
RE: Unexpected end of file?!? plz help..

You're getting another unexpected end of file error?

I'm not going to go through the code line by line and fix it, you have to do it yourself. But unexpected end of file errors happen because you forgot to close something, or end the line correctly.

Be sure whenever you make a bracket, quotation, or paratheses, you close it.

For example, you write something with (, there also has to be a ) at the end, so it looks like ().

Of course, you can put stuff inside of it, as appropriate, so you might have something like:
("", "", "", ""). whatever.

It can get as complicated as it can, but it will always be the same.

something()
{
  anotherthing("", "", "", "");
  for(loop conditions here, not writing that out)
  {
    if((random condition)||(another condition)) //that "||" means OR
    {
    }
  }

}

etc.

Basically:

Make sure you close everything. If you type (( there better be a )) at the end of it somewhere
End every line (minus specific ones like loop declarations, { and }, and function declarations (i.e. void myFunc()) with a ";".

Go ahead and debug yourself, though. Don't expect us to fix everything for you, because an unexpected end of file problem isn't a complicated issue, it's a syntax error.

Good luck and hope this helped.

And I wouldn't recommend for anyone to fix it for him, or he won't learn a thing.


Anywho, I found the error. You're missing a "}", but I'll let you find it.

(This post was last modified: 05-18-2012, 12:44 AM by Putmalk.)
05-18-2012, 12:42 AM
Find


Messages In This Thread
Unexpected end of file?!? plz help.. - by Jumpman - 05-11-2011, 04:49 PM
RE: Unexpected end of file?!? plz help.. - by Putmalk - 05-18-2012, 12:42 AM



Users browsing this thread: 1 Guest(s)