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

Members Online

»
0 Active | 9 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

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
Category: CoDUO Mapping
CoD United Offensive mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: Script Compile Error: Bad Syntax
Ethnik_Man
General Member
Since: Jul 27, 2005
Posts: 417
Last: Feb 1, 2008
[view latest posts]
Level 5
Category: CoDUO Mapping
Posted: Sunday, Sep. 11, 2005 07:27 pm
hello all,

im terrible at scrpting. If there is any language(computer) besides Quake C that i need to know pleedse let me know...
any way heres the gsc with problems:

main()
{
maps\_load::main();
maps\_tiger_gmi::main();

level.player takeallweapons();
level.player giveWeapon("panzerfaust");
level.player giveWeapon("thompson");
level.player giveWeapon("colt");
level.player giveWeapon("fraggrenade");
level.player switchToWeapon("thompson");

thread tiger()
thread tiger2()
}

tiger()
{
tank = getent ( "tank","targetname");
path = getVehicleNode ("tankpath","targetname");
tank attachpath(path);
tank maps\_tiger::init();
tank startPath();
tank waittill ("reached_end_node");

tank setTurretTargetEnt( getent ("tank_shoot","targetname"), ( -437, 643, -128 );
wait 4;\\waits 4 seconds
tank waittill( "turret_on_vistarget" );
tank FireTurret();\\fires the turret
}

tiger()
{
tank = getent ( "tank2","targetname");
path = getVehicleNode ("tankpath2","targetname");
tank attachpath(path);
tank maps\_tiger::init();
tank startPath();
tank waittill ("reached_end_node");
}


so ya if anyone, especially BR3NT(hes a master with this stuff) can help me it would be really appreciated.


[wave][wave][wave]

edited on Sep. 11, 2005 02:27 pm by MasterChief6
Share |
Mystic
General Member
Since: Apr 10, 2004
Posts: 6147
Last: Apr 15, 2018
[view latest posts]
Level 10
Forum Moderator
Im a fan of MODSonair
Category: CoDUO Mapping
Posted: Sunday, Sep. 11, 2005 07:59 pm
Try this
Quote:
main()
{
maps\_load::main();
maps\_tiger_gmi::main();

level.player takeallweapons();
level.player giveWeapon("panzerfaust");
level.player giveWeapon("thompson");
level.player giveWeapon("colt");
level.player giveWeapon("fraggrenade");
level.player switchToWeapon("thompson");

thread tiger()
thread tiger2()
}

tiger()
{
tank = getent ( "tank","targetname");
path = getVehicleNode ("tankpath","targetname");
tank attachpath(path);
tank maps\_tiger::init();
tank startPath();
tank waittill ("reached_end_node");

tank setTurretTargetEnt( getent ("tank_shoot","targetname"), ( -437, 643, -128 );
wait 4;\\waits 4 seconds
tank waittill( "turret_on_vistarget" );
tank FireTurret();\\fires the turret
}

tiger2()
{
tank = getent ( "tank2","targetname");
path = getVehicleNode ("tankpath2","targetname");
tank attachpath(path);
tank maps\_tiger::init();
tank startPath();
tank waittill ("reached_end_node");
}
Share |
Ethnik_Man
General Member
Since: Jul 27, 2005
Posts: 417
Last: Feb 1, 2008
[view latest posts]
Level 5
Category: CoDUO Mapping
Posted: Sunday, Sep. 11, 2005 08:22 pm
wait isnt that the same thing?
anyway it didnt work... so im kinda lost now[cry]
Share |
Mystic
General Member
Since: Apr 10, 2004
Posts: 6147
Last: Apr 15, 2018
[view latest posts]
Level 10
Forum Moderator
Im a fan of MODSonair
Category: CoDUO Mapping
Posted: Sunday, Sep. 11, 2005 08:32 pm
I changed part of it which i saw straight away.. i'll have another look
Share |
103kill
General Member
Since: Dec 2, 2004
Posts: 82
Last: Jun 24, 2009
[view latest posts]
Level 3
Category: CoDUO Mapping
Posted: Sunday, Sep. 11, 2005 10:05 pm
You have:
Quote:
thread tiger()
thread tiger2()


You are missing semicolons. It should be
thread tiger();
thread tiger2();
Try that.

Cheers [casanova]
Share |
Ethnik_Man
General Member
Since: Jul 27, 2005
Posts: 417
Last: Feb 1, 2008
[view latest posts]
Level 5
Category: CoDUO Mapping
Posted: Sunday, Sep. 11, 2005 10:23 pm
OOOOO ok ill give it a go go[rocking]
Share |
Ethnik_Man
General Member
Since: Jul 27, 2005
Posts: 417
Last: Feb 1, 2008
[view latest posts]
Level 5
Category: CoDUO Mapping
Posted: Sunday, Sep. 11, 2005 10:30 pm
[cry] still nothing...
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoDUO Mapping
Posted: Sunday, Sep. 11, 2005 10:43 pm
Load your map in developer mode.
It should give you a more detailed error message in the console.



To start CoD in developer mode

Rightclick on your CoD shortcut on your desktop
In "Target" add +set developer 1 behind the ".....\CoDMP.exe"
So it should look like this: ".....\CoDMP.exe" +set developer 1
Press "OK"
Start CoD
type /devmap yourmapname in the console.

This works for UO and SP too.. just add it to the right shortcut.
Share |
Ethnik_Man
General Member
Since: Jul 27, 2005
Posts: 417
Last: Feb 1, 2008
[view latest posts]
Level 5
Category: CoDUO Mapping
Posted: Sunday, Sep. 11, 2005 11:26 pm
ok ill see what it says...
Share |
Ethnik_Man
General Member
Since: Jul 27, 2005
Posts: 417
Last: Feb 1, 2008
[view latest posts]
Level 5
Category: CoDUO Mapping
Posted: Sunday, Sep. 11, 2005 11:33 pm
ok this is what it says:


(file 'maps\castlevonpreiv.gsc', line 26)

tank setTurretTargetEnt( getent ("tank_shoot","targetname"), (-464, -192, -432 );

thats wat it says after i put developer 1 on and started it as
/devmap castlevonpreiv

Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty : CoDUO Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»