You are not logged in.    Login    New User    Forum Home    Search

Location:
JBPLAY  \  Meteor 2  \  Error Reporting  \  script error in my map, can't fix it?

Back to Threads

Viewing Thread: script error in my map, can't fix it?

 

d34db34t

Joined: 25 March 2004
Posts: 145
11 January 2006 09:27 (UK time)

I made a map in M2

i made a script for it

When i ran the map the script didn't work.
i checked the console it said:

<i> Compile Error: Invasion ( 35) Error [v:\seer\src\compiler.c:918] :pass error at {
Line: {, Error No: 1 </i>

Edit: the word <i> pass </i> was actually meant to be par.se

Edited: 11 January 2006 11:34


You need to login to create posts in this thread.

arezey

Joined: 16 June 2005
Posts: 1599
11 January 2006 12:36 (UK time)

I'm really good at these errors, send it over to me.

Even the script file without the map is enough.

Edited: 11 January 2006 12:37


You need to login to create posts in this thread.

me_mantis

Joined: 26 September 2003
Posts: 1152
11 January 2006 14:52 (UK time)

If you can paste the script here, I will be able to help you, but I usually just try to find the line of ther error, and look for bad grammer.

You need to login to create posts in this thread.

arezey

Joined: 16 June 2005
Posts: 1599
11 January 2006 19:25 (UK time)

I just said I can do it too. I need to face it 100 times a day!!!!!! (and I always fix it)

Try searching these:

Usually, if it is in } or {, it might be that you have a symbol somewhere where it shouldn't be. Or, you might have put an ; in the end of a function like OnMapStart()<b>;</b> always causes a "p-a-r-s-e error".

Someone should fix the banned word library, p-a-r-s-e becomes p****.

Edited: 11 January 2006 19:26


You need to login to create posts in this thread.

James Bunting
Joined: 17 September 2003
Posts: 1308
11 January 2006 19:47 (UK time)

lol

That is why it is best to use the upload feature to attach your script files. For some reason some browsers won't find .sc files so you best zip the file up.

You need to login to create posts in this thread.

d34db34t

Joined: 25 March 2004
Posts: 145
11 January 2006 23:02 (UK time)

here it is...

it's incomplete as i had only started putting the related map together.

I fixed it now, the problem was just a ; in one of my functions that was not supposed to be there

Edited: 11 January 2006 23:16


You need to login to create posts in this thread.

me_mantis

Joined: 26 September 2003
Posts: 1152
12 January 2006 17:23 (UK time)

You inserted and extra ; on the end of your () removing it will help immensly.
Very interesting script btw

void CheckBraces();// LOOK HERE!!!!!!!!! ITS GOT A ; on tha end!
{
int count;

count = GetBracesRemaining();

if( count > 0)
{
SC_GameMessage("%d missile braces remaining", count);
}
else
{
// display a message
SC_GameMessage("Missile destroyed, main chamber door deactivated";);

// play door opening sound
SC_PlaySound("doors\\rod_o";);

// hide the door
SC_SetSectorHidden(75,1);

}
}

Edited: 12 January 2006 17:24


You need to login to create posts in this thread.



Forums system (C) 1999-2023 by James Bunting.

Terms of Use