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 '{'
Wickedwrath Offline
Junior Member

Posts: 13
Threads: 3
Joined: Oct 2011
Reputation: 0
#9
RE: ERR : Unexpected token '{'

(10-20-2011, 07:10 PM)Your Computer Wrote: Yeah, this is the part that is causing the issue:

PHP Code: (Select All)
{
  
AddUseItemCallback("""Key_1""Door_1""UsedKeyOnDoor"true);
  
AddUseItemCallback("""Key_2""Door_2""UsedKeyOnDoor_2"true);
  
AddUseItemCallback("""Secretkey2""metal_1""UsedKeyOnDoor_3"true);


You're going to want it to be something like this:

PHP Code: (Select All)
void function_name_here(/*parameters here*/)
{
  
AddUseItemCallback("""Key_1""Door_1""UsedKeyOnDoor"true);
  
AddUseItemCallback("""Key_2""Door_2""UsedKeyOnDoor_2"true);
  
AddUseItemCallback("""Secretkey2""metal_1""UsedKeyOnDoor_3"true);

Ah, okay. I did put "void function_name_here(/*parameters here*/)" and the games can load, but the Keys won't work now.. I don't get this at all. Also, the Piano doesn't work either.


[Image: tumblr_lfv1jh0Z5V1qfw81zo1_500.gif]
10-20-2011, 07:32 PM
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: 1 Guest(s)