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
Error Hps
ZIEGMEBALLEN Offline
Junior Member

Posts: 18
Threads: 4
Joined: Feb 2014
Reputation: 1
#1
Error Hps

Amnesia says that Script not Valid
Error ( 10,1) Unexpected token.. How to fix this ?

////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "SecondRoomKey_1", "SecondRoom_1", "UsedKeyOnDoor", true);
AddUseItemCallback("", "Corridorkey_1", "Level_2", "UsedKeyOnDoor", true);
}

void Teleport1(string &in asParent, string &in asChild, int alStates);
{

AddEntityCollideCallback("Player", "Script_1", "Teleport1", true, 1);
SetEntityActive("TeleportingNG_1", true);
PlaySoundAtEntity("", "24_iron_maiden.snt", "TeleportingNG_1", 0, false);
AddPropForce("TeleportingNG_1", -10000, 0, 0, "world");

}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("SecondRoom_1", false, true);
SetSwingDoorLocked("Level_2", false, true);
PlaySoundAtEntity("", "unlock_door", "SecondRoom_1", 0, false);
PlaySoundAtEntity("", "unlock_door", "Level_2", 0, false);
RemoveItem("SecondRoomKey_1");
RemoveItem("Corridorkey_1");
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

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

}

Sad
02-26-2014, 10:00 AM
Find


Messages In This Thread
Error Hps - by ZIEGMEBALLEN - 02-26-2014, 10:00 AM
RE: Error Hps - by Mudbill - 02-26-2014, 10:06 AM
RE: Error Hps - by ZIEGMEBALLEN - 02-26-2014, 10:18 AM
RE: Error Hps - by Mudbill - 02-26-2014, 10:50 AM
RE: Error Hps - by ZIEGMEBALLEN - 02-26-2014, 10:57 AM
RE: Error Hps - by Romulator - 02-26-2014, 10:52 AM



Users browsing this thread: 1 Guest(s)