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
i3670 Offline
Posting Freak

Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation: 36
#2
RE: "Unexpected end of file"

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");
}

"What you think is irrelevant" - A character of our time

A Christmas Hunt
01-20-2013, 09:06 PM
Find
Asaratha Offline
Junior Member

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

(01-20-2013, 09:06 PM)i3670 Wrote: 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");
}

Damn, thanks bro. Dunno how I looked that over.
01-20-2013, 09:09 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#4
RE: "Unexpected end of file"

Whoa, this is the thread number 20.000 of this dear forum! PARTY HARD!

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
01-20-2013, 09:36 PM
Find




Users browsing this thread: 1 Guest(s)