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, Please help.
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Fatal error, Please help.

The error indicates that something went wrong upon compiling the script, and that it started at line number 14. You see it says main (14, 53) which means line 14, character 53.

Line 14 is the PlaySoundAtEntity line.

However I don't see any issues with that line myself. Are you sure this is the correct script?
Just in case you can try replacing it all with this (it's the same, just re-formatted):

PHP Code: (Select All)
void OnStart()
{
    
PlayMusic("06_amb.ogg"true431false);
    
AddUseItemCallback("""Key_1""Door_1""Unlock"true);
}

void Unlock(string &in asItemstring &in asEntity)
{
    
SetSwingDoorLocked(asEntityfalsetrue);
    
PlaySoundAtEntity("""unlock_door.snt"asEntity0false);
    
RemoveItem(asItem);
}

void OnEnter()
{

}

void OnLeave()
{



(This post was last modified: 02-23-2017, 09:53 AM by Mudbill.)
02-23-2017, 09:48 AM
Find


Messages In This Thread
Fatal error, Please help. - by XeOnTricks - 02-23-2017, 04:58 AM
RE: Fatal error, Please help. - by Mudbill - 02-23-2017, 09:48 AM



Users browsing this thread: 1 Guest(s)