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
[Script Error Help] Crash because of a "}"?!?
Rokotain Offline
Member

Posts: 54
Threads: 9
Joined: Jul 2011
Reputation: 0
#1
[Script Error Help] Crash because of a "}"?!?

Ok, everything is working neatly. Just got some inspiration back. And haven't had any problems in a while.

Then suddenly, my previous working script for the map crashes when I load the map!
But there is no valid reason for it. It says the error expected thing, with the "27, 1".

That means it's on line 27 of the script right?
Problem is the only thing there is a "}" to close a void.

Lines 17 - 27
Quote:void HiddenAreaEntered(string &in asParent, string &in asChild, int alState)
{
StopMusic(1, 0);
PlayMusic("SoundFire12.ogg", false, 8, 1, 0, true);
SetLampLit("torch_1", true, true);
SetLampLit("torch_2", true, true);
PlaySoundAtEntity("ui_sanity_gain", "ui_sanity_gain.snt", "Player", 0, false);
GiveSanityBoostSmall();
StartPlayerLookAt("AreaLookEvent", 5, 20, "");
AddTimer("", 1, "LookEventStop")
}

I tried removing it. But then the error message just jumped to saying it's on line 74. Which is the last line of the script. Also containing a "}" from the end of the void onLeave thing.

Any idea why the error is upset with my previous working and normal }'s ?
It's very annoying, I even tried deleting the .hps file and making it new. But still crashes with the error.
(This post was last modified: 02-01-2012, 12:32 AM by Rokotain.)
01-31-2012, 07:51 PM
Find


Messages In This Thread
[Script Error Help] Crash because of a "}"?!? - by Rokotain - 01-31-2012, 07:51 PM



Users browsing this thread: 1 Guest(s)