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
An "Unexpected end of file" error?
MissMarilynn Offline
Member

Posts: 77
Threads: 23
Joined: Oct 2011
Reputation: 1
#1
An "Unexpected end of file" error?

I keep getting an unexpected end of file error with my scripting and it says the problem is with the last line (which is just })

Any suggestions?


PHP Code: (Select All)
void OnStart() {     AddEntityCollideCallback("Player""monsterspawn""MonsterFunction"true1);    AddEntityCollideCallback("Player""clockbong""ClockScare"true1);        SetEntityPlayerInteractCallback("Girls_Dorm_First_Floor""IsItLocked3"true);    SetEntityPlayerInteractCallback("Boys_Dorm_First_Floor""IsItLocked4"true);    SetEntityPlayerInteractCallback("ra_office""IsItLocked5"true);    AddUseItemCallback("open_Girls_Dorm_First_Floor_door""girl_key""Girls_Dorm_First_Floor""openlevel"false);    }
void openlevel(string &in asItemstring &in asEntity){    SetSwingDoorLocked("Girls_Dorm_First_Floor"falsetrue);    PlaySoundAtEntity("""unlock_door""door1"0false);    RemoveItem("girl_key");    PlayMusic("02_puzzle.ogg"false0.7f010false);    GiveSanityBoostSmall();}
void MonsterFunction(string &in asParentstring &in asChildint alState){    SetEntityActive("servant_grunt_1"true);     AddEnemyPatrolNode("servant_grunt_1""PathNodeArea_1"4"");    AddEnemyPatrolNode("servant_grunt_1""PathNodeArea_2"1"");    AddEnemyPatrolNode("servant_grunt_1""PathNodeArea_3"1"");    AddEnemyPatrolNode("servant_grunt_1""PathNodeArea_4"4"");}
void ClockScare(string &in asParentstring &in asChildint alState){    PlaySoundAtEntity("brute""notice_long.snt""PosNodeArea_1"1.0ffalse);    PlaySoundAtEntity("""react_scare""Player"0false);    GiveSanityDamage(5.0ftrue);}
////LOCKED DOORS
///This is the RA's officevoid IsItLocked3(string &in entity){     if (GetSwingDoorLocked(entity)     && entity == "ra_door")     {          SetMessage("Doors", "LockedDoor5", 0);          AddQuest("open_ra_quest", "open_door");     }} 
///This is the girls dormvoid IsItLocked4(string &in entity){     if (GetSwingDoorLocked(entity)     && entity == "Girls_Dorm_First_Floor")     {          SetMessage("Doors", "LockedDoor3", 0);          AddQuest("open_girls_quest", "open_door");     }} 
///This is the boys dorm
void IsItLocked5(string &in entity){     if (GetSwingDoorLocked(entity)     && entity == ""Boys_Dorm_First_Floor")     {          SetMessage("Doors", "LockedDoor4", 0);          AddQuest("find_crowbar_quest", "open_door");     }} 
void OnEnter(){PlayMusic("
01_amb_darkness.ogg", true,1.0f, 2.0f, 0, true);}
void OnLeave(){    SetupLoadScreen("
LoadingText", "Loading_GirlsDorm", 1, "Rose.jpg");} 
(This post was last modified: 10-21-2011, 08:45 PM by MissMarilynn.)
10-21-2011, 08:42 PM
Find


Messages In This Thread
An "Unexpected end of file" error? - by MissMarilynn - 10-21-2011, 08:42 PM



Users browsing this thread: 1 Guest(s)