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
Script Help FATAL ERROR..... Script
Sigvash Offline
Junior Member

Posts: 1
Threads: 1
Joined: Nov 2011
Reputation: 0
#1
Question  FATAL ERROR..... Script

Quote:FATAL ERROR: Could not load script file 'custom_stories/The Choice/custom_stories/TheChoice/maps/third.hps'!
main (12,14) : ERR : 'monsterdoorkey_1' is not declared
thats the error

this is the third.hps file

Quote:////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "monsterdoorkey_1", "monsterdoor", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("monsterdoor", false, true);
PlaySoundAtEntity("" , "unlock_door", "monsterdoor", 0, false);
RemoveItem(monsterdoorkey_1);
}
////////////////////////////
// Run when leaving map
void OnLeave()
{

}
Can someone help me?
Im very new to this
11-13-2011, 03:46 PM
Find


Messages In This Thread
FATAL ERROR..... Script - by Sigvash - 11-13-2011, 03:46 PM
RE: FATAL ERROR..... Script - by Tanshaydar - 11-13-2011, 03:50 PM
RE: FATAL ERROR..... Script - by Your Computer - 11-13-2011, 04:17 PM



Users browsing this thread: 2 Guest(s)