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

Members Online

»
0 Active | 65 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP 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 4
Category: CoD4 MP Mapping
CoD 4 mapping and level design for multiplayer.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Bad Syntax?
ROTENT
General Member
Since: May 29, 2011
Posts: 9
Last: Jul 6, 2011
[view latest posts]
Level 0
Category: CoD4 MP Mapping
Posted: Sunday, Jul. 3, 2011 04:43 pm
I try to play my map but i get bad syntax?
I checked console and it said some about line 1.. heres my .GSC

Code:
{
	//maps\mp\mp_explicit_fx::main();
	//maps\createart\mp_explicit_art::main();
	maps\mp\_load::main();	
	maps\mp\_teleport::main();

	//maps\mp\_compass::setupMiniMap("compass_map_mp_backlot");

	//setExpFog(500, 2200, 0.81, 0.75, 0.63, 0);
	//VisionSetNaked( "mp_explicit" );
	ambientPlay("ambient_explicit_ext");

	game["allies"] = "marines";
	game["axis"] = "opfor";
	game["attackers"] = "axis";
	game["defenders"] = "allies";
	game["allies_soldiertype"] = "desert";
	game["axis_soldiertype"] = "desert";

	setdvar( "r_specularcolorscale", "1" );

	setdvar("r_glowbloomintensity0",".25");
	setdvar("r_glowbloomintensity1",".25");
	setdvar("r_glowskybleedintensity0",".3");
	setdvar("compassmaxrange","1800");
	
	thread printer1();
	thread printer2();
	thread printer3();
	thread printer4();
	thread printer5();

}

//xfire = madstealth
printer1()
{
trigger = GetEnt( "square1", "targetname" );
while (1)
	{
	trigger waittill("trigger", user);
		{
		iprintlnbold( "ROTANT is a GOD");
		wait 4;
		}
	}
}
printer2()
{
trigger = GetEnt( "square2", "targetname" );
while (1)
	{
	trigger waittill("trigger", user);
		{
		iprintlnbold( "pr!m3 kicks ass!");
		wait 4;
		}
	}
}
printer3()
{
trigger = GetEnt( "square3", "targetname" );
while (1)
	{
	trigger waittill("trigger", user);
		{
		iprintlnbold( "Explicit Bouncers the poo-poo!");
		wait 4;
		}
	}
}
printer4()
{
trigger = GetEnt( "square4", "targetname" );
while (1)
	{
	trigger waittill("trigger", user);
		{
		iprintlnbold( "LOL @ U");
		wait 4;
		}
	}
}
printer5()
{
trigger = GetEnt( "square5", "targetname" );
while (1)
	{
	trigger waittill("trigger", user);
		{
		iprintlnbold( "I haz guns");
		wait 4;
		}
	}
}
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: CoD4 MP Mapping
Posted: Sunday, Jul. 3, 2011 04:48 pm
Try;

Code:

main()
{
	//maps\mp\mp_explicit_fx::main();
	//maps\createart\mp_explicit_art::main();
	maps\mp\_load::main();	
	maps\mp\_teleport::main();

	//maps\mp\_compass::setupMiniMap("compass_map_mp_backlot");

	//setExpFog(500, 2200, 0.81, 0.75, 0.63, 0);
	//VisionSetNaked( "mp_explicit" );
	ambientPlay("ambient_explicit_ext");

	game["allies"] = "marines";
	game["axis"] = "opfor";
	game["attackers"] = "axis";
	game["defenders"] = "allies";
	game["allies_soldiertype"] = "desert";
	game["axis_soldiertype"] = "desert";

	setdvar( "r_specularcolorscale", "1" );

	setdvar("r_glowbloomintensity0",".25");
	setdvar("r_glowbloomintensity1",".25");
	setdvar("r_glowskybleedintensity0",".3");
	setdvar("compassmaxrange","1800");
	
	thread printer1();
	thread printer2();
	thread printer3();
	thread printer4();
	thread printer5();

}

//xfire = madstealth
printer1()
{
trigger = GetEnt( "square1", "targetname" );
while (1)
	{
	trigger waittill("trigger", user);
		{
		iprintlnbold( "ROTANT is a GOD");
		wait 4;
		}
	}
}
printer2()
{
trigger = GetEnt( "square2", "targetname" );
while (1)
	{
	trigger waittill("trigger", user);
		{
		iprintlnbold( "pr!m3 kicks ass!");
		wait 4;
		}
	}
}
printer3()
{
trigger = GetEnt( "square3", "targetname" );
while (1)
	{
	trigger waittill("trigger", user);
		{
		iprintlnbold( "Explicit Bouncers the poo-poo!");
		wait 4;
		}
	}
}
printer4()
{
trigger = GetEnt( "square4", "targetname" );
while (1)
	{
	trigger waittill("trigger", user);
		{
		iprintlnbold( "LOL @ U");
		wait 4;
		}
	}
}
printer5()
{
trigger = GetEnt( "square5", "targetname" );
while (1)
	{
	trigger waittill("trigger", user);
		{
		iprintlnbold( "I haz guns");
		wait 4;
		}
	}
}
Share |
ROTENT
General Member
Since: May 29, 2011
Posts: 9
Last: Jul 6, 2011
[view latest posts]
Level 0
Category: CoD4 MP Mapping
Posted: Sunday, Jul. 3, 2011 05:01 pm
I get a run time error now?

something to do with this line?

Code:
 trigger waittill("trigger", user); 
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: CoD4 MP Mapping
Posted: Sunday, Jul. 3, 2011 05:53 pm
try removing the user param, you don't really need it as nothing else is going to trigger it but a player anyway.
Share |
ROTENT
General Member
Since: May 29, 2011
Posts: 9
Last: Jul 6, 2011
[view latest posts]
Level 0
Category: CoD4 MP Mapping
Posted: Sunday, Jul. 3, 2011 06:00 pm
i have.. yet same error
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: CoD4 MP Mapping
Posted: Sunday, Jul. 3, 2011 06:24 pm
run the following, try commenting out printers 2 to 5 and un-comment them one at a time if you still get an error. Other than that are you sure you have the trigger brush set up in radiant properly and there names match the script?

Code:
main()
{
	//maps\mp\mp_explicit_fx::main();
	//maps\createart\mp_explicit_art::main();
	maps\mp\_load::main();	
	maps\mp\_teleport::main();

	//maps\mp\_compass::setupMiniMap("compass_map_mp_backlot");

	//setExpFog(500, 2200, 0.81, 0.75, 0.63, 0);
	//VisionSetNaked( "mp_explicit" );
	ambientPlay("ambient_explicit_ext");

	game["allies"] = "marines";
	game["axis"] = "opfor";
	game["attackers"] = "axis";
	game["defenders"] = "allies";
	game["allies_soldiertype"] = "desert";
	game["axis_soldiertype"] = "desert";

	setdvar( "r_specularcolorscale", "1" );

	setdvar("r_glowbloomintensity0",".25");
	setdvar("r_glowbloomintensity1",".25");
	setdvar("r_glowskybleedintensity0",".3");
	setdvar("compassmaxrange","1800");
	
	thread printer1();
	thread printer2();
	thread printer3();
	thread printer4();
	thread printer5();

}

//xfire = madstealth
printer1()
{
trigger1 = GetEnt( "square1", "targetname" );
while (1)
	{
	trigger1 waittill("trigger");
		{
		iprintlnbold( "ROTANT is a GOD");
		wait 4;
		}
	}
}
printer2()
{
trigger2 = GetEnt( "square2", "targetname" );
while (1)
	{
	trigger2 waittill("trigger");
		{
		iprintlnbold( "pr!m3 kicks ass!");
		wait 4;
		}
	}
}
printer3()
{
trigger3 = GetEnt( "square3", "targetname" );
while (1)
	{
	trigger3 waittill("trigger");
		{
		iprintlnbold( "Explicit Bouncers the poo-poo!");
		wait 4;
		}
	}
}
printer4()
{
trigger 4= GetEnt( "square4", "targetname" );
while (1)
	{
	trigger4 waittill("trigger");
		{
		iprintlnbold( "LOL @ U");
		wait 4;
		}
	}
}
printer5()
{
trigger5 = GetEnt( "square5", "targetname" );
while (1)
	{
	trigger5 waittill("trigger");
		{
		iprintlnbold( "I haz guns");
		wait 4;
		}
	}
}
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 MP 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

»