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
Problem with Unexpected end of file
Shives Offline
Member

Posts: 154
Threads: 41
Joined: Jan 2012
Reputation: 1
#1
Problem with Unexpected end of file

Hi
Problem:
main(102,5) : Error : Unexpected end of file

Ich searched for the problem for about 10 minutes and ich can't find it

AddEntityCollideCallback("Player", "ScriptArea_2", "ger", true, 1);
}
  void Windig(string &in asParent, string &in asChild, int alState)
{
  PlayMusic("01_event_critters.ogg", false, 0.7, 3, 0, false);
  SetLightVisible("PointLight_1", false);
  GiveSanityDamage(9.0f, true);
  SetLampLit("Kronleuchter", false, true);
  AddPropImpulse("Kronleuchter", -2, 0, -2, "world");
  CreateParticleSystemAtEntity("", "ps_dust_whirl.ps", "particle", false);
  StartPlayerLookAt("look", 2, 4, "StopPlayerLookAt");
  PlaySoundAtEntity("", "react_scare.snt", "Player", 0, false);
  PlaySoundAtEntity("", "scare_wind_reverse.snt", "Player", 0, false);
}
  void Auge(string &in asParent, string &in asChild, int alState)
{
  PlaySoundAtEntity("", "00_creak.snt", "Player", 0, false);
  SetPlayerJumpDisabled(true);
  SetPlayerCrouchDisabled(true);
  SetPlayerMoveSpeedMul(0.6f);
  SetPlayerLookSpeedMul(0.6f);
  PlaySoundAtEntity("", "Horror.snt", "Player", 0, false);
  MovePlayerHeadPos(0.0, -1.3f, 0, 0.75, 0.5f);
  FadePlayerRollTo(-12, 0.3f, 0.8f);
  AddTimer("", 5, "Augezwei");
  SetLightVisible("PointLight_2", false);
}
  void Augezwei(string &in asTimer)
{
  FadePlayerRollTo(0, 1, 3);
  SetPlayerMoveSpeedMul(1.0f);
  SetPlayerLookSpeedMul(1.0f);
  SetPlayerJumpDisabled(false);
  SetPlayerCrouchDisabled(false);
  MovePlayerHeadPos(0.0f, 0.0f, 0.0f, 10.0f, 20.0f);
}
   void S(string &in asParent, string &in asChild, int alState)
{
  GiveSanityDamage(9.0f, true);
  PlaySoundAtEntity("", "guardian_activated.snt", "Player", 0, false);
SetPropActiveAndFade("S_1", true, 1.0f);
CreateParticleSystemAtEntity("", "ps_guardian_appear_explosion.ps", "S_1", false);
SetPropActiveAndFade("S_2", true, 1.0f);
CreateParticleSystemAtEntity("", "ps_guardian_appear_explosion.ps", "S_2", false);
SetPropActiveAndFade("S_3", true, 1.0f);
CreateParticleSystemAtEntity("", "ps_guardian_appear_explosion.ps", "S_3", false);
SetPropActiveAndFade("S_4", true, 1.0f);
CreateParticleSystemAtEntity("", "ps_guardian_appear_explosion.ps", "S_4", false);
SetPropActiveAndFade("S_5", true, 1.0f);
CreateParticleSystemAtEntity("", "ps_guardian_appear_explosion.ps", "S_5", false);
  StartScreenShake(0.9f, 1, 0.9f, 1.0f);
}
  void Attic(string &in asParent, string &in asChild, int alState)
{
  FadePlayerRollTo(-12, 0.3f, 0.8f);
  SetPlayerMoveSpeedMul(0.6f);
  SetPlayerLookSpeedMul(0.6f);
  PlaySoundAtEntity("", "00_creak.snt", "Player", 0, false);
  AddTimer("", 5, "Noise);
}
  void Noise(string &in asTimer)
{
  FadePlayerRollTo(0, 1, 3);
  SetPlayerMoveSpeedMul(1.0f);
  SetPlayerLookSpeedMul(1.0f);
  PlaySoundAtEntity("", "03_no.snt", "Player", 0, false);
}
  void ger(string &in asParent, string &in asChild, int alState)
{
  StartScreenShake(0.9f, 1, 0.9f, 1.0f);
  GiveSanityDamage(9.0f, true);
  PlaySoundAtEntity("", "Insanitymonster.snt", "Player", 0, false);
CreateParticleSystemAtEntity("", "ps_dust_falling_door_quick.ps", "ScriptArea_3", false);
CreateParticleSystemAtEntity("", "ps_dust_falling_door_quick.ps", "ScriptArea_4", false);
CreateParticleSystemAtEntity("", "ps_dust_falling_door_quick.ps", "ScriptArea_5", false);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
  PlayMusic("16_amb.ogg", true, 0.7, 3, 0, true);
    FadeOut(0);
    FadeIn(8);
}

////////////////////////////
// Run when leaving map
void OnLeave()
{
    SetupLoadScreen("", "", 1, "LoadAttic.jpg");
}

My Custom Story
http://www.frictionalgames.com/forum/thread-12587.html

Sorry for bad English


03-24-2012, 10:07 PM
Find


Messages In This Thread
Problem with Unexpected end of file - by Shives - 03-24-2012, 10:07 PM



Users browsing this thread: 1 Guest(s)