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
Scripting Error: Unexpected End In Script Please Help!
JohnandSerena Offline
Junior Member

Posts: 11
Threads: 4
Joined: Dec 2012
Reputation: 1
#5
RE: Scripting Error: Unexpected End In Script Please Help!

(02-21-2013, 12:30 PM)JustAnotherPlayer Wrote:
(02-21-2013, 12:26 PM)JohnandSerena Wrote:
(02-21-2013, 12:20 PM)JustAnotherPlayer Wrote: Please give us your full script. The script that you posted only has 34 lines.

My bad it says Unexpected end in script: 34,2
At
PHP Code: (Select All)
////////////////////////////
// Run when leaving map
void OnLeave()
{

There's an space at the last curly bracket (}). Remove it.
--
EDIT:
STOP READING AND EDIT IT!
Meanwhile, here's my script.
PHP Code: (Select All)
void OnStart()
{
wakeUp();
}
void wakeUp ()
{
FadeOut(0);
FadeIn(20);
FadeImageTrailTo(22);
FadeSepiaColorTo(1004);
SetPlayerActive(false);
FadePlayerRollTo(50220220);
FadeRadialBlurTo(0.152);
SetPlayerCrouching(true);
AddTimer("trig1"11.0f"beginStory");

void beginStory(string &in asTimer)
{
ChaePlyerStateToNormal();
SetPlayerActive(true);
FadePlayerRollTo(03333);
FadeRadialBlurTo(0.01);
FadeSepiaColorTo(04);
SetPlayerCrouching(false);
FadeImageTrailTo(0,1);
}

void OnLeave()
{


Thanks ill try that when i get to my laptop again!

(02-21-2013, 12:30 PM)JustAnotherPlayer Wrote:
(02-21-2013, 12:26 PM)JohnandSerena Wrote:
(02-21-2013, 12:20 PM)JustAnotherPlayer Wrote: Please give us your full script. The script that you posted only has 34 lines.

My bad it says Unexpected end in script: 34,2
At
PHP Code: (Select All)
////////////////////////////
// Run when leaving map
void OnLeave()
{

There's an space at the last curly bracket (}). Remove it.
--
EDIT:
STOP READING AND EDIT IT!
Meanwhile, here's my script.
PHP Code: (Select All)
void OnStart()
{
wakeUp();
}
void wakeUp ()
{
FadeOut(0);
FadeIn(20);
FadeImageTrailTo(22);
FadeSepiaColorTo(1004);
SetPlayerActive(false);
FadePlayerRollTo(50220220);
FadeRadialBlurTo(0.152);
SetPlayerCrouching(true);
AddTimer("trig1"11.0f"beginStory");

void beginStory(string &in asTimer)
{
ChangePlayerStateToNormal();
SetPlayerActive(true);
FadePlayerRollTo(03333);
FadeRadialBlurTo(0.01);
FadeSepiaColorTo(04);
SetPlayerCrouching(false);
FadeImageTrailTo(0,1);
}

void OnLeave()
{

(This post was last modified: 02-21-2013, 12:53 PM by JohnandSerena.)
02-21-2013, 12:51 PM
Find


Messages In This Thread
RE: Scripting Error: Unexpected End In Script Please Help! - by JohnandSerena - 02-21-2013, 12:51 PM



Users browsing this thread: 1 Guest(s)