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
Solved My second script doesnt work?
Author Message
kartanonperuna Offline
Senior Member

Posts: 741
Joined: Oct 2011
Reputation: 8
Post: #1
My second script doesnt work?
"Expected identifier 14,15"
This is what I get when I enter the level door to my second map.

Heres my second script fore my second map.


////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("crowbar_joint_2", "crowcollide", "crowopen_func", true, 1);
AddUseItemCallback("", "crowbar_1", "prison_locked", "activatecrowdoor", true);
AddUseItemCallback("", "key_tomb_rusty", "cellar_wood01_slow", "KeyOnDoor", true);
AddUseItemCallback("", "key_torture_chamber_1", "hatch_metal01_1", "KeyOnDoor2", true);
AddUseItemCallback("", "key_study_1", "cellar_wood01_1", "KeyOnDoor3", true);
PlayMusic("drums soundtrack.ogg", true, 1.0f, 1.0f, 1, false);
AddEntityCollideCallback("Player", "TriggerArea1", "TriggerMonster", true, 1);
}

TriggerMonster(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("enemy_suitor_1", true);
}

void KeyOnDoor3(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("cellar_wood01_1", false, true);
PlaySoundAtEntity("", "unlock_door", "cellar_wood01_1", 0, false);
RemoveItem("key_study_1");
}

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

}

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

}
(This post was last modified: 01-09-2012 07:18 AM by kartanonperuna.)
01-08-2012 05:16 PM
Visit this user's website Find all posts by this user Quote this message in a reply
flamez3 Offline
Posting Freak

Posts: 1,320
Joined: Apr 2011
Reputation: 57
Post: #2
RE: My second script doesnt work?
Please, try and figure out these things on your own. I beg you.

You don't have void before TriggerMonster

01-08-2012 05:24 PM
Find all posts by this user Quote this message in a reply
kartanonperuna Offline
Senior Member

Posts: 741
Joined: Oct 2011
Reputation: 8
Post: #3
RE: My second script doesnt work?
Hah im trying and try to solve them with others in skype but they said they dont know why.
01-08-2012 05:31 PM
Visit this user's website Find all posts by this user Quote this message in a reply
flamez3 Offline
Posting Freak

Posts: 1,320
Joined: Apr 2011
Reputation: 57
Post: #4
RE: My second script doesnt work?
"Expected identifier 14,15"
Means that on the 14th line, inside that function block; there is something wrong with it. Get notepad ++ and change the language to C++, you will be able to see what's wrong alot easier then in regular notepad.

01-08-2012 05:36 PM
Find all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,236
Joined: Jul 2011
Reputation: 216
Post: #5
RE: My second script doesnt work?
Post #2 says what the problem is.

Tutorials: From Noob to Pro
(This post was last modified: 01-09-2012 01:45 AM by Your Computer.)
01-09-2012 01:44 AM
Visit this user's website Find all posts by this user Quote this message in a reply
BlueFury Offline
Senior Member

Posts: 487
Joined: May 2011
Reputation: 9
Post: #6
RE: My second script doesnt work?
See Your Computer's signature, his tutorials: from Noob to Pro are great, please follow those.

Sticks and stones may break our bones, but words will break our hearts. – Robert Fulghum
01-09-2012 01:46 AM
Find all posts by this user Quote this message in a reply
flamez3 Offline
Posting Freak

Posts: 1,320
Joined: Apr 2011
Reputation: 57
Post: #7
RE: My second script doesnt work?
(01-09-2012 01:44 AM)Your Computer Wrote:  Post #2 says what the problem is.
Indeed

01-09-2012 02:41 AM
Find all posts by this user Quote this message in a reply
kartanonperuna Offline
Senior Member

Posts: 741
Joined: Oct 2011
Reputation: 8
Post: #8
RE: My second script doesnt work?
Yeah forgot to put solve.
01-09-2012 07:18 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




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