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 Token
Southlaguna Offline
Member

Posts: 70
Threads: 21
Joined: Jan 2012
Reputation: 0
#1
Solved: 8 Years, 2 Months, 2 Weeks ago Bug  Unexpected Token

Recently i have had an unsolved error that some may have already viewed, now my my PC has its own version of this error by saying ERR: Unexpected Token { 30,1
{ 42, 1
{ 50, 1
Here is my .hps


//----Piano---//
void Piano1(string &in asTimer)
{
PlaySoundAtEntity("piano1", "general_piano03.snt", "piano_1", 0, false);
AddTimer("Piano1", 0, "Piano1");
}

void pianostop_1(string &in asParent, string &in asChild, int alState)
{
StopSound("piano1", 0);
RemoveTimer("Piano1");
AddPropImpulse("piano_1", 0, 0, 100, "World");
SetLeverStuckState("piano_1", 0, true);
FadeLightTo("PianoLight_1", 1, 0, 0, 1, 8, 0);
}
//----PILLARHALL----//
void NightmareStart(string &in asParent, string &in asChild, int alState)
{
AddTimer("T1", 1, "ScreamSequence");
AddTimer("T2", 3, "ScreamSequence");
}

void ScreamSequence(string &in asTimer)
{
PlayMusic("guardian_activated1.ogg", false, 2, 1, 0, false);
}

//////////////////////
// void OnStart()
{
AddTimer("Piano1", 0, "Piano1");
AddEntityCollideCallback("Player", "pianostop_1", "pianostop_1", true, 1);
AddEntityCollideCallback("Player", "ActivateNightmare", "NightmareStart", true, 1);
AddEntityCollideCallback("Player", "ActivateNightmare_2", "Boo1", true, 1);
AddEntityCollideCallback("Player", "ActivateNightmare_5", "Boo2", true, 1);
AddEntityCollideCallback("Player", "ActivateNightmare_9", "Boo3", true, 1);
AddEntityCollideCallback("Player", "ActivateNightmare_10", "Boo4", true, 1);
AddEntityCollideCallback("Player", "ActivateNightmare_6", "Boo5", true, 1);
AddEntityCollideCallback("Player", "ActivateNightmare_3", "Boo6", true, 1);
AddEntityCollideCallback("Player", "Hallmonsters_1", "Boo", true, 1);
AddEntityCollideCallback("Player", "Hallmonsters_3", "Boo", true, 1);
}

//////////////////////
// void OnEnter()
{


}

//////////////////////
// void OnLeave()
{

}

The errors are after each of my void On blah blah blah. If anyone can spot a problem with this let me know if not i guess its just some other messed up issue that no one can solve, heres the hpl, please help im getting real sick of this problem



Attached Files
.log   hpl.log (Size: 3.75 KB / Downloads: 93)

02-14-2012, 04:39 AM
Find


Messages In This Thread
Unexpected Token - by Southlaguna - 02-14-2012, 04:39 AM
RE: Unexpected Token - by Your Computer - 02-14-2012, 04:54 AM
RE: Unexpected Token - by Southlaguna - 02-14-2012, 05:13 AM



Users browsing this thread: 1 Guest(s)