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
unexpected end of file
Fartfox Offline
Junior Member

Posts: 1
Threads: 1
Joined: Mar 2012
Reputation: 0
#1
unexpected end of file

////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "the_dick", "evan_ass", "KeyOnDoor", true);
AddUseItemCallback("", "the_penis", "evan_dick", "UseKeyOnDoor", true);
AddUseItemCallback("", "the_twat", "evan_twat", "UsedKeyOnDoor", true);
AddUseItemCallback("", "the_shit", "evan_shit", "UsedKeyOnDoor2", true);
AddUseItemCallback("", "the_poop", "evan_poop", "UsedKeyOnDoors", true);
AddEntityCollideCallback("Player", "script_area_1", "GetQuest", true, 1);
AddEntityCollideCallback("Player", "script_area_2", "FinishQuest", true, 1);
}


void GetQuest(string & asParent, string &in asChild, int alState)
{
AddQuest("quest1", "Quest1");
PlaySoundAtEntity("", "ui_add_quest1", "Player", 0.0f, true);
}


void FinishQuest(string & asParent, string &in asChild, int alState)
{
CompleteQuest("quest1", "Quest1");
GiveSanityBoost();
PlaySoundAtEntity("", "ui_sanity_gain", "Player, 0.0f, true);
}



void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("evan_ass", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "evan_ass", 0.0f, true);
RemoveItem("the_dick");
}


void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("evan_dick", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "evan_dick", 0.0f, true);
RemoveItem("the_penis");
}


void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("evan_twat", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "evan_twat", 0.0f, true);
RemoveItem("the_twat");
}


void UsedKeyOnDoors(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("evan_poop", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "evan_poop", 0.0f, true);
RemoveItem("the_poop");
}


void UsedKeyOnDoors2(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("evan_shit", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "evan_shit", 0.0f, true);
RemoveItem("the_shit");
}


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


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


Please Help! Unexpected end of file!
-----------------------------------
83,2 unexpected end of file
(This post was last modified: 03-04-2012, 08:19 PM by Fartfox.)
03-04-2012, 08:16 PM
Find


Messages In This Thread
unexpected end of file - by Fartfox - 03-04-2012, 08:16 PM
RE: unexpected end of file - by Stepper321 - 03-04-2012, 09:39 PM



Users browsing this thread: 1 Guest(s)