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
ERR : Unexpected token '{'
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#6
RE: ERR : Unexpected token '{'

(10-20-2011, 05:51 PM)Wickedwrath Wrote: ///////////////////////////////////////////////////////////////////////////////////
// ALL THE KEYS!

To explain what i said in post #2: A code block is started with a { and ended with a }. The code block below the "ALL THE KEYS!" section implies that you wanted the code block to be part of a function's definition. However, you did not provide the function header. This confused the compiler, who was expecting a function header, but got something else. I only pointed out the commented section to help make it easier for you to find the line where the issue is located. I do not know for what purpose that code block is to be used for, so i'm leaving it to you to define a function header.

Tutorials: From Noob to Pro
10-20-2011, 06:15 PM
Website Find


Messages In This Thread
ERR : Unexpected token '{' - by Wickedwrath - 10-20-2011, 05:22 PM
RE: ERR : Unexpected token '{' - by Your Computer - 10-20-2011, 05:36 PM
RE: ERR : Unexpected token '{' - by Wickedwrath - 10-20-2011, 05:39 PM
RE: ERR : Unexpected token '{' - by Your Computer - 10-20-2011, 05:44 PM
RE: ERR : Unexpected token '{' - by Wickedwrath - 10-20-2011, 05:51 PM
RE: ERR : Unexpected token '{' - by Your Computer - 10-20-2011, 06:15 PM
RE: ERR : Unexpected token '{' - by Wickedwrath - 10-20-2011, 07:01 PM
RE: ERR : Unexpected token '{' - by Your Computer - 10-20-2011, 07:10 PM
RE: ERR : Unexpected token '{' - by Wickedwrath - 10-20-2011, 07:32 PM
RE: ERR : Unexpected token '{' - by jens - 10-20-2011, 07:48 PM
RE: ERR : Unexpected token '{' - by Wickedwrath - 10-20-2011, 09:36 PM
RE: ERR : Unexpected token '{' - by jens - 10-21-2011, 07:27 AM
RE: ERR : Unexpected token '{' - by Wickedwrath - 10-21-2011, 07:41 AM
RE: ERR : Unexpected token '{' - by Homicide13 - 10-21-2011, 08:13 PM
RE: ERR : Unexpected token '{' - by Wickedwrath - 10-26-2011, 10:34 PM



Users browsing this thread: 2 Guest(s)