The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
ZeMaster091 Offline
Junior Member

Posts: 3
Threads: 2
Joined: Mar 2013
Reputation: 0
#1
Unexpected Token

This is my .hps

////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback(""e, "hollow_needle_1", "First_Door", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("First_Door", false, true);
PlaySoundAtEntity("", "unlock_door", "First_Door", 0, false);
RemoveItem("hollow_needle_1");

}

{
AddEntityCollideCallback("Player", "SlamDoor", "CollideRoomTwo", true, 1);
}

void CollideRoomTwo(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("First_Door", true, true);
}
////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

How can I fix this?
03-10-2013, 12:32 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)