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
Need help with key sais error
swapinamnesia Offline
Junior Member

Posts: 3
Threads: 1
Joined: Feb 2012
Reputation: 0
#1
Need help with key sais error

Hi im trying to make my first amnesia map i did a map with a key and a door that was locked but when i try to load the map in amnesia this error pops up

FATAL ERROR

FATAL ERROR: Could not load script file custom_stories/TheHauntedCellar/maps/TheHauntedCellar.hps! main (13,16) : ERR : Key_1 is not declared

What does that mean??? and heres my script in the hps file

void OnStart()
{

AddUseItemCallback("", "Key_1", "door_1", "UsedKeyOnDoor", true);

}

void FUNCTION(string &in item, string &in door)
{

SetSwingDoorLocked("door_1", false, true);
PlaySoundAtEntity("", "unlock_door", "door_1", 0, false);
RemoveItem(Key_1);

}

Could anyone help me have been searching on youtube and google for a solution but i cant find any please help.
02-29-2012, 11:48 PM
Find


Messages In This Thread
Need help with key sais error - by swapinamnesia - 02-29-2012, 11:48 PM
RE: Need help with key sais error - by Tanshaydar - 03-01-2012, 12:18 AM
RE: Need help with key sais error - by Tanshaydar - 03-01-2012, 01:30 AM
RE: Need help with key sais error - by Juby - 03-01-2012, 07:01 AM
RE: Need help with key sais error - by flamez3 - 03-01-2012, 07:08 AM
RE: Need help with key sais error - by Tanshaydar - 03-01-2012, 08:57 AM
RE: Need help with key sais error - by flamez3 - 03-01-2012, 09:08 AM



Users browsing this thread: 3 Guest(s)