Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FATAL ERROR
Zypherzemus Offline
Member

Posts: 94
Threads: 7
Joined: Jul 2011
Reputation: 0
#3
RE: FATAL ERROR

/////////////////////////////
// Run first time starting map
void OnStart()
{
PlayMusic("12_amb.ogg", true, 100.0, 0.0, 1, true);
}

{
AddEntityCollideCallback("Player", "Key_Quest_Area", "GetKeyQuest", true, 1);
void GetKeyQuest(string &in asParent, string &in asChild, int alState)
{
AddQuest("keyquest", "KeyQuest");
}
AddEntityCollideCallback("Player", "Key_Complete_Area", "FinishKeyQuest", true, 1);
void FinishKeyQuest(string &in asParent, string &in asChild, int alState)
{
CompleteQuest("keyquest", "KeyQuest");
}

////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "eastwingkey_1", "eastwingdoor", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("eastwingdoor", false, true);
PlaySoundAtEntity("", "unlock_door", "eastwingdoor", 0, false);
RemoveItem("eastwingkey_1");
}





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

}








I kinda edited it to see if I could fix the problem on my own. That's why it looks like so.

Now the Error is: main (8,1): ERR: Unexpected token '{'
(This post was last modified: 07-02-2011, 08:46 AM by Zypherzemus.)
07-02-2011, 08:38 AM
Find


Messages In This Thread
FATAL ERROR - by Zypherzemus - 07-02-2011, 07:23 AM
RE: FATAL ERROR - by xtron - 07-02-2011, 08:14 AM
RE: FATAL ERROR - by Zypherzemus - 07-02-2011, 08:38 AM
RE: FATAL ERROR - by Tanshaydar - 07-02-2011, 11:04 AM
RE: FATAL ERROR - by finosi - 07-02-2011, 04:40 PM
RE: FATAL ERROR - by Zypherzemus - 07-02-2011, 08:06 PM
RE: FATAL ERROR - by Roenlond - 07-02-2011, 08:15 PM
RE: FATAL ERROR - by Zypherzemus - 07-02-2011, 10:00 PM
RE: FATAL ERROR - by Roenlond - 07-02-2011, 11:06 PM
RE: FATAL ERROR - by Zypherzemus - 07-02-2011, 11:31 PM
RE: FATAL ERROR - by Roenlond - 07-02-2011, 11:37 PM
RE: FATAL ERROR - by Zypherzemus - 07-02-2011, 11:45 PM
RE: FATAL ERROR - by Roenlond - 07-02-2011, 11:48 PM
RE: FATAL ERROR - by Zypherzemus - 07-03-2011, 12:27 AM
RE: FATAL ERROR - by Zypherzemus - 07-03-2011, 01:52 AM
RE: FATAL ERROR - by Zypherzemus - 07-03-2011, 06:23 AM
RE: FATAL ERROR - by Roenlond - 07-03-2011, 10:59 AM
RE: FATAL ERROR - by Zypherzemus - 07-04-2011, 10:35 PM



Users browsing this thread: 1 Guest(s)