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
Script Help Unexpected token in IF Statement
Fearlessagent Offline
Junior Member

Posts: 12
Threads: 2
Joined: Jul 2012
Reputation: 1
#3
RE: Unexpected token in IF Statement

(07-07-2012, 04:46 AM)heyitsrobert97 Wrote: Hi, I've got this random problem where my cs won't load. the error says line 176,1 Unexpected Token. but the token has to be there.

void rotten01();
{ <------- Error here ?
if(GetLocalVarInt("rottenkeyuse") == 2)
{
RemoveItem("rotten_key");
GiveSanityBoost();
}
}

any help please
the semicolon ( ; ) on the line above the error doesn't belong there. Semicolons are only needed after statements, not function headers.
07-07-2012, 05:02 AM
Find


Messages In This Thread
RE: Unexpected token in IF Statement - by Fearlessagent - 07-07-2012, 05:02 AM



Users browsing this thread: 1 Guest(s)