Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fatal Error Script
Author Message
Mateh Offline
Junior Member

Posts: 10
Joined: Oct 2010
Reputation: 0
Post: #1
Fatal Error Script
Small problem witch script Code text of error {main (6,1):ERR : expected ';' }
:
script:

Quote:////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "key_tower_1", "prison_section_1", "UsedKeyOnDoor", true)
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)

{
SetSwingDoorLocked("prison_section_1", false, true);
PlaySoundAtEntity("", "unlockdoor", "prison_section_1", 0, false);
RemoveItem("key_tower_1");
}


////////////////////////////
// Run when entering map
void OnEnter()
{

}

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

}


What is wrong in the names are well written.
Sorry for may Englisch.
10-16-2010 06:00 PM
Find all posts by this user Quote this message in a reply
Entih Offline
Junior Member

Posts: 47
Joined: Sep 2010
Reputation: 0
Post: #2
RE: Fatal Error Script
The error says there is an issue on line six. Now observe the error it tells you.

You must learn to read the error and find whats wrong by what it says.

Spoiler below!
Semicolon after that line in the OnStart function.
10-16-2010 06:08 PM
Find all posts by this user Quote this message in a reply
Mateh Offline
Junior Member

Posts: 10
Joined: Oct 2010
Reputation: 0
Post: #3
RE: Fatal Error Script
Thanks Entih for help.It's working.
10-16-2010 06:14 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)