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 Token
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#6
RE: Unexpected Token

(03-10-2013, 01:15 AM)ZeMaster091 Wrote:
(03-10-2013, 01:12 AM)JustAnotherPlayer Wrote:
(03-10-2013, 12:52 AM)ZeMaster091 Wrote: I'm confused. I'm trying to do what you say but I'm still getting errors

In the script, there should be a part that say
PHP Code: (Select All)
void OnStart() 
right?
Put the
PHP Code: (Select All)
{
AddEntityCollideCallback("Player""SlamDoor""CollideRoomTwo"true1);

to the void OnStart() section, so that it will look like
PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""SlamDoor""CollideRoomTwo"true1);
AddUseItemCallback("""hollow_needle_1""First_Door""UsedKeyOnDoor"true);

In the guide's and tutorials, there are void OnStart()'s right? Well, you can't have two of those. Just put the command in the void OnStart() section of the tutorial to your own void OnStart() part.

OH. I get it now. Thanks a lot!
I also edited my post with good explanation. Check it out.

"Veni, vidi, vici."
"I came, I saw, I conquered."
03-10-2013, 01:18 AM
Find


Messages In This Thread
Unexpected Token - by ZeMaster091 - 03-10-2013, 12:32 AM
RE: Unexpected Token - by PutraenusAlivius - 03-10-2013, 12:39 AM
RE: Unexpected Token - by ZeMaster091 - 03-10-2013, 12:52 AM
RE: Unexpected Token - by PutraenusAlivius - 03-10-2013, 01:12 AM
RE: Unexpected Token - by ZeMaster091 - 03-10-2013, 01:15 AM
RE: Unexpected Token - by PutraenusAlivius - 03-10-2013, 01:18 AM
RE: Unexpected Token - by ExpectedIdentifier - 03-10-2013, 02:14 AM
RE: Unexpected Token - by PutraenusAlivius - 03-10-2013, 02:16 AM
RE: Unexpected Token - by ExpectedIdentifier - 03-10-2013, 02:26 AM



Users browsing this thread: 1 Guest(s)