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
LulleBulle Offline
Member

Posts: 101
Threads: 33
Joined: Feb 2012
Reputation: 0
#1
Unexpected end of file

I'm having a slight problem. My script code in my .hps file is working perfect and the map works but when I add the following:

on void OnStart() i add AddEntityCollideCallback("CloseDoor", "Player", DoorClose", true, 1);

and then I add

void DoorClose(correct syntax)
{
SetSwingDoorClosed("mansion_2", true, false);
}


and for some reason I get unexpected end of line, why is this?
06-25-2012, 05:45 PM
Find
MaZiCUT Offline
Senior Member

Posts: 536
Threads: 31
Joined: Jun 2012
Reputation: 17
#2
RE: Unexpected end of file

It's soppoused to be

void OnStart()
{
AddEntityCollideCallback("Player", "CloseDoor", "DoorClose", true, 1);
}


void DoorClose(correct syntax)
{
SetSwingDoorClosed("mansion_2", true, false);
}

Hi.
(This post was last modified: 06-25-2012, 05:52 PM by MaZiCUT.)
06-25-2012, 05:50 PM
Website Find
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#3
RE: Unexpected end of file

AddEntityCollideCallback("CloseDoor", "Player", DoorClose", true, 1);
missing " at the start of the called function.
06-25-2012, 05:51 PM
Find




Users browsing this thread: 1 Guest(s)