| Sigvash   Junior Member
 
 Posts: 1
 Threads: 1
 Joined: Nov 2011
 Reputation: 
0
 | 
			|  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 |  | 
	
		| Tanshaydar   From Beyond
 
 Posts: 3,085
 Threads: 17
 Joined: Mar 2009
 Reputation: 
67
 | 
			| RE: FATAL ERROR..... Script 
 
				RemoveItem(monsterdoorkey_1);should be
 RemoveItem("monsterdoorkey_1");
 
 
 |  | 
	| 11-13-2011, 03:50 PM |  | 
	
		| Your Computer   SCAN ME!
 
 Posts: 3,456
 Threads: 32
 Joined: Jul 2011
 Reputation: 
235
 | 
			| RE: FATAL ERROR..... Script 
 
				Was there a tutorial you followed? If so, could you lead me to it?
			 
 |  | 
	| 11-13-2011, 04:17 PM |  |