Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds
Watch MODSonair

Members Online

»
0 Active | 5 Guests
Online:

LATEST FORUM THREADS

»
water
CoD4 MP Mapping
Rainbow HELP....
CoD4 MP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 MP Mapping
CoD 2 mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access subscribe
Author Topic: Bad Syntax in Script?
jelvischan
General Member
Since: Jun 21, 2012
Posts: 45
Last: Mar 14, 2013
[view latest posts]
Level 2
Category: CoD2 MP Mapping
Posted: Tuesday, Jul. 3, 2012 12:04 pm
I try to run my map and I get bad syntax, can someone identify my error(s)?

Code:
main()
{
maps\mp\_load::main();

setExpFog(0.0001, 0.55, 0.6, 0.55, 0);
// setCullFog(0, 16500, 0.55, 0.6, 0.55, 0);
ambientPlay("ambient_france");

game["allies"] = "american";
game["axis"] = "german";
game["attackers"] = "allies";
game["defenders"] = "axis";
game["american_soldiertype"] = "normandy";
game["german_soldiertype"] = "normandy";

setCvar("r_glowbloomintensity0", ".25");
setCvar("r_glowbloomintensity1", ".25");
setcvar("r_glowskybleedintensity0",".3");

thread escape();
thread doubledoors();
thread nade();
thread colt();

}

escape()
{
plat=getent("escape","targetname");
esc1=getent("escapedoor","targetname");
esc2=getent("escapedoor2","targetname");
trig=getent("trig_escape","targetname");
while(1)
{
trig waittill ("trigger");
esc1 notsolid();
esc2 notsolid();
plat movey (-1248,4,2,2);
plat waittill ("movedone");

wait(2);
plat movey (1248,4,2,2);
plat waittill ("movedone");

esc1 solid();
esc2 solid();
}
}

doubledoors()
{
door=getent("mcdoor","targetname");
door1=getent("mcdoor1","targetname");
trig=getent("trig_mcdoors","targetname");
while(1)
{
trig waittill ("trigger");
door rotateyaw (90,3,2,2);
door1 rotateyaw (90,3,2,2);
door waittill ("rotatedone");
wait(1);
door rotateyaw (-90,7,2,2);
door1 rotateyaw (-90,7,2,2);
door waittill ("rotatedone");
}
}

nade()
{
nade=getent("nade","targetname");
trig=getent("trig_nade"),"targetname");
while(1)
{
trig waittill ("trigger");
nade movez (-100,2,0.095,0.095);
nade waittill ("movedone");
wait(2);
nade movez (100,2,0.95,0.95);
nade waittill ("movedone");

}

colt()
{
colt=getent("colt","targetname");
trig=getent("trig_colt"),"targetname");
while(1)
{
trig waittill ("trigger");
colt movez (-100,2,0.095,0.095);
colt waittill ("movedone");
wait(2);
colt movez (100,2,0.95,0.95);
colt waittill ("movedone");

}





edited on Jul. 3, 2012 12:05 pm by jelvischan
Share |
IzNoGoD
General Member
Since: Nov 29, 2008
Posts: 694
Last: Nov 10, 2012
[view latest posts]
Level 6
Category: CoD2 MP Mapping
Posted: Tuesday, Jul. 3, 2012 01:04 pm
post using [ code] tags
set developer 1 on your server, report back which line is the error (copy paste full error including the star below it)
Share |
jelvischan
General Member
Since: Jun 21, 2012
Posts: 45
Last: Mar 14, 2013
[view latest posts]
Level 2
Category: CoD2 MP Mapping
Posted: Tuesday, Jul. 3, 2012 01:25 pm
attachment: image(23.9Kb)
Okay here. SS. btw I didnt do
Code:
 tags because the code was all on one line when i posted it.
Share |
IzNoGoD
General Member
Since: Nov 29, 2008
Posts: 694
Last: Nov 10, 2012
[view latest posts]
Level 6
Category: CoD2 MP Mapping
Posted: Tuesday, Jul. 3, 2012 01:27 pm
please read the picture you just posted. Pay extra attention to the area around the star, as the star indicates where the error is.

Hint: it's very easy to spot.

[spoiler]
count the (, then count the ).
[/spoiler]
Share |
jelvischan
General Member
Since: Jun 21, 2012
Posts: 45
Last: Mar 14, 2013
[view latest posts]
Level 2
Category: CoD2 MP Mapping
Posted: Tuesday, Jul. 3, 2012 01:34 pm
attachment: image(49.2Kb)
Fixedd that, but look at this one now?
Share |
jelvischan
General Member
Since: Jun 21, 2012
Posts: 45
Last: Mar 14, 2013
[view latest posts]
Level 2
Category: CoD2 MP Mapping
Posted: Tuesday, Jul. 3, 2012 01:35 pm
WOOOOOW. Sorry, nevermind xD
Share |
jelvischan
General Member
Since: Jun 21, 2012
Posts: 45
Last: Mar 14, 2013
[view latest posts]
Level 2
Category: CoD2 MP Mapping
Posted: Tuesday, Jul. 3, 2012 01:43 pm
AHH no. I fixed all the errors and I started the server. It was going fine and then crashed. It now keeps crashing and i dont know why...
Share |
jelvischan
General Member
Since: Jun 21, 2012
Posts: 45
Last: Mar 14, 2013
[view latest posts]
Level 2
Category: CoD2 MP Mapping
Posted: Tuesday, Jul. 3, 2012 01:56 pm
attachment: image(20.2Kb)
New errors:
Share |
IzNoGoD
General Member
Since: Nov 29, 2008
Posts: 694
Last: Nov 10, 2012
[view latest posts]
Level 6
Category: CoD2 MP Mapping
Posted: Tuesday, Jul. 3, 2012 04:42 pm
Try searching this forum or just google it.
I have answered this one before :)
Share |
liltc64
General Member
Since: Feb 12, 2007
Posts: 906
Last: Oct 22, 2012
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Wednesday, Jul. 4, 2012 03:48 am
that error means you dont have that trigger on your map, if that trigger is there then check your spelling in radiant and in your .gsc and make sure they are both the same spelling.
Share |
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 MP Mapping

Latest Syndicated News

»
Why console gaming is dying
Quote:Consider this: Dedicated gaming sales — including living-room consoles...
Devs: Games are being dumb...
Click 'read more' to view the contents of this post.
Loadout
Gun Crafting to the Max. edited on Sep. 25, 2012 06:57 pm by Morp...
Introducing the Source Fil...
Surprised this wasn't made a long time ago. Sounds like a nice little feature.
Introducing the Source Fil...
The Source Filmmaker (SFM) is the movie-making tool built and used by us he...

Partners & Friends

»