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
Xallikk Offline
Junior Member

Posts: 35
Threads: 7
Joined: Jun 2016
Reputation: 0
#1
Unexpected end of file

UUUUgghgghgghghg... Anyway, whenever I load the custom story it says (29,2) unexpected end of file, here is the code. I can't see the problem but maybe the heat's getting to me...

void OnStart()
{
AddTimer("scare", 3, "TimerPlayerReact");
AddTimer("breath", 4.5, "TimerPlayerReact");
AddTimer("breath", 6.5, "TimerPlayerReact");
AddTimer("saw3", 12, "TimerTorture");
AddTimer("saw_voice3", 11, "TimerTorture");
AddEntityCollideCallback("Player", "kista1", "kista1", true, 1);
}

void kista1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("maidenopen", true);
SetEntityActive("maidenclosed", false);
CreateParticleSystemEntity("", "ps_iron_maiden_event_smoke.ps", "ScriptArea_1, false);
PlaySoundAtEntity("maidenopen", "24_iron_maiden", "maidenopen", 0, false);
StartScreenShake(0.3, 0.3, 0, 0.3);
AddPlayerSanity(-10);
}

void TimerPlayerReact(string &in asTimer)
{
PlayGuiSound("react_" + asTimer, 0.6);
}

void TimerTorture(string &in asTimer)
{
PlayGuiSound("23_" + asTimer, 0.6);
}

The ones at the front always die first...
06-07-2016, 02:02 AM
Find


Messages In This Thread
Unexpected end of file - by Xallikk - 06-07-2016, 02:02 AM
RE: Unexpected end of file - by Daemian - 06-07-2016, 06:34 AM
RE: Unexpected end of file - by Romulator - 06-07-2016, 08:08 AM
RE: Unexpected end of file - by 7heDubz - 06-07-2016, 06:47 AM
RE: Unexpected end of file - by Xallikk - 06-07-2016, 09:23 PM
RE: Unexpected end of file - by Mudbill - 06-07-2016, 10:48 PM
RE: Unexpected end of file - by Xallikk - 06-08-2016, 01:50 AM
RE: Unexpected end of file - by Daemian - 06-08-2016, 02:08 AM
RE: Unexpected end of file - by Mudbill - 06-08-2016, 02:44 AM
RE: Unexpected end of file - by Xallikk - 06-08-2016, 03:48 AM



Users browsing this thread: 2 Guest(s)