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
Game keeps crashing.
Khan Offline
Member

Posts: 61
Threads: 12
Joined: Aug 2011
Reputation: 0
#1
Game keeps crashing.

My game keeps crashing when I try to test something out, its a script related problem, I know, but I dont know wat is wrong, I cant find wat is causing the problem, I was making a key for a door, and when I tried to test it, it crashed.

////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("MetalKey", "Door1", "Func01", false);
}

void Func01(string &in asItem, string &in asEntity)
{
RemoveItem(MetalKey);
SetSwingDoorLocked(asEntity, false, true);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
}
////////////////////////////
// Run when leaving map
void OnLeave()
{


It crashes and sais MetalKey is not defined. wtf?

}
08-25-2011, 07:12 PM
Find


Messages In This Thread
Game keeps crashing. - by Khan - 08-25-2011, 07:12 PM
RE: Game keeps crashing. - by X4anco - 08-25-2011, 07:16 PM
RE: Game keeps crashing. - by Kyle - 08-25-2011, 07:22 PM
RE: Game keeps crashing. - by X4anco - 08-25-2011, 07:25 PM
RE: Game keeps crashing. - by Khan - 08-25-2011, 09:44 PM
RE: Game keeps crashing. - by Kyle - 08-25-2011, 10:10 PM



Users browsing this thread: 1 Guest(s)