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"
Asaratha Offline
Junior Member

Posts: 14
Threads: 5
Joined: Jul 2011
Reputation: 0
#1
"Unexpected end of file"

Hey guys, I got this and have been trying to find where I didn't close it off. I've been searching for some time now, and would appereciate some help.
void OnStart()
{
    SetEntityPlayerInteractCallback("bone_saw_1", "ArmRemoval1", true);
}
void ArmRemoval1(string &in asParent, string &in asChild, int alState)
{
    SetPlayerActive(false);
    StartPlayerLookAt("lookat", 10.0f, 10.0f, "");
    SetMessage("Messages", "Popup9", 0);
    AddTimer("", 2.0f, "ArmRemoval2");
}
void ArmRemoval2(string &in asTimer)
{
    SetMessage("Messages", "Popup10", 0);
    FadeOut(2);
    AddTimer("", 2.0f, "ArmRemoval3");
}
void ArmRemoval3(string &in asTimer)
{
    SetMessage("Messages", "Popup11", 0);
    AddTimer("", 1.0f, "ArmRemoval4");
}
void ArmRemoval4(string &in asTimer)
{
    SetMessage("Messages", "Popup12", 0);
    AddTimer("", 1.0f, "ArmRemoval5");
}
void ArmRemoval5(string &in asTimer)
{
    SetMessage("Message, "Popup13", 0);
    PlaySoundAtEntity("", "sanity_flick.snt", "Player", 0, false);
    PlaySoundAtEntity("", "react_pant.snt", "Player", 0, false);
    AddTimer("", 1.0f, "ArmRemoval6");
}
void ArmRemoval6(string &in asTimer)
{
    PlaySoundAtentity("", "general_water_drip.snt", "Player", 0, false);
    AddTimer("", 1.0f, "ArmRemoval7");
}
void ArmRemoval7(string &in asTimer)
{
    PlaySoundAtEntity("", "sanity_flick.snt", "Player", 0, false);
    PlaySoundAtEntity("", "react_pant.snt", "Player", 0, false);
    AddTimer("", 1.0f, "ArmRemoval8");
}
void ArmRemoval8(string &in asTimer)
{
    PlaySoundAtEntity("", "sanity_flick.snt", "Player", 0, false);
    PlaySoundAtEntity("", "react_pant.snt", "Player", 0, false);
    AddTimer("", 1.0f, "ArmRemoval9");
}
void ArmRemoval9(string &in asTimer)
{
    PlaySoundAtEntity("", "impact_organic_high.snt", "Player", 0, false);
    PlaySoundAtEntity("", "player_falldamage_med.snt", "Player", 0, false);
    SetPlayerCrouching(true);
    AddTimer("", 3.0f, "ArmRemoval10final");
}
void ArmRemoval10final(string &in asTimer)
{
    FadeIn(20);
    FadeImageTrailTo(2, 2);
    FadeSepiaColorTo(100, 4);    
    FadePlayerRollTo(50, 220, 220);
    FadeRadialBlurTo(0.15, 2);
    AddTimer("", 3.0f, "recover");
}
void recover(string &in asTimer)
{
    ChangePlayerStateToNormal();
    SetPlayerActive(true);
    FadePlayerRollTo(0, 33, 33);
    FadeRadialBlurTo(0.0, 1);
    FadeSepiaColorTo(0, 4);
    SetPlayerCrouching(false);
    FadeImageTrailTo(0,1);
}

Any help is appreciated, getting kinda flustered that I can't find where I went wrong.
(This post was last modified: 01-20-2013, 09:10 PM by Asaratha.)
01-20-2013, 08:50 PM
Find


Messages In This Thread
"Unexpected end of file" - by Asaratha - 01-20-2013, 08:50 PM
RE: "Unexpected end of file" - by i3670 - 01-20-2013, 09:06 PM
RE: "Unexpected end of file" - by Asaratha - 01-20-2013, 09:09 PM
RE: "Unexpected end of file" - by The chaser - 01-20-2013, 09:36 PM



Users browsing this thread: 1 Guest(s)