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
Fatal error problems
Zlynan Offline
Junior Member

Posts: 1
Threads: 1
Joined: Sep 2011
Reputation: 0
#1
Fatal error problems

Hello, when i'm tring to start my own custom story i made with HPL editor it says:

FATAR ERROR: Could not load script file 'custom_stories/First map/maps/Firstmaps.hps'!
main (12,16) : ERR : 'monsterdoorkey_1' is not declared.

And this is my script:

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

void MyFunc(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("doorone", false, true);
PlaySoundAtEntity("", "unlock_door", "doorone", 0, false);
RemoveItem(monsterdoorkey_1);
}

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

}

Please help me!
09-06-2011, 09:55 PM
Find


Messages In This Thread
Fatal error problems - by Zlynan - 09-06-2011, 09:55 PM
RE: Fatal error problems - by Tanshaydar - 09-06-2011, 10:19 PM



Users browsing this thread: 1 Guest(s)