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 keys
D3AD UPR1S1NG Offline
Member

Posts: 64
Threads: 21
Joined: Apr 2011
Reputation: 0
#1
Need help with keys

At the moment I am trying to make a new custom story and I have just got into trying to script but at the moment I suck, I need help trying to unlock a door with this key I have because everytime I click recompile script and lang it throws the following errors at me

main (7,6) : INFO : Compiling void OnStart ()
main(9,38) : ERR : prison_door_1 is not declared
main (11,6) : INFO : Compiling void UseKeyOnDoor(string&in, string&in,)
main (14,17) ERR Cellkey is not declared

here is the script that i'm using and I know it's me making a stupid mistake but could somebody point it out to me Smile

//===========================================
// This runs when the map first starts
void OnStart()
{
AddUseItemCallback("","CellKey",Prison_door_1,"UseKeyonDoor",true);
}
void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("prison_door_1",false,true);
RemoveItem(CellKey);
PlaySoundAtEntity("","unlock_door","prison_door_1", 0, false);
}
04-20-2011, 02:08 AM
Find


Messages In This Thread
Need help with keys - by D3AD UPR1S1NG - 04-20-2011, 02:08 AM
RE: Need help with keys - by Russ Money - 04-20-2011, 02:25 AM
RE: Need help with keys - by D3AD UPR1S1NG - 04-20-2011, 02:30 AM
RE: Need help with keys - by Russ Money - 04-20-2011, 02:58 AM
RE: Need help with keys - by D3AD UPR1S1NG - 04-20-2011, 02:59 AM



Users browsing this thread: 1 Guest(s)