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

Members Online

»
0 Active | 45 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 Scripting
Scripting and coding with Call of Duty 4.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Strange error that has me stuck completely
infinet
General Member
Since: Feb 4, 2008
Posts: 208
Last: Jan 23, 2013
[view latest posts]
Level 4
Category: CoD4 Scripting
Posted: Thursday, Mar. 25, 2010 04:43 am
I am trying to get my end credits working. I am basically using the same exact peice of code that I used perfectly fine on my other SP maps and have seen it used on other SP maps fine. But for some reason on my current map, it's giving me this error:

Quote:
Error:
******* script compile error *******
Error: unknown function: (file 'maps/infiltration.gsc', line 437)
black_overlay = create_overlay_element( "black", 0 );
*
************************************


Here is the peice of code in my GSC:

Code:
credits()
{
	lines = [];
	lines[ lines.size ] = &"INFILTRATION_CREDIT1";
	lines[ lines.size ] = &"INFILTRATION_CREDIT2";
	maps\_introscreen::introscreen_feed_lines( lines );
	wait(0.5);
	black_overlay = create_overlay_element( "white", 0 ); 
	black_overlay fadeOverTime( 3 );
	wait(6);
	Changelevel( "" );
}


I have tried both black_overlay = create_overlay_element( "white", 0 ); and black_overlay = create_overlay_element( "black", 0 );

Same error. I really dont know why it's all of a sudden not working.
Share |
Samuel033
General Member
Since: Dec 10, 2009
Posts: 484
Last: Dec 25, 2015
[view latest posts]
Level 5
Category: CoD4 Scripting
Posted: Thursday, Mar. 25, 2010 06:12 am
The function is missing from your script file. If it is in another script then you are probably missing the include at the top.
Share |
infinet
General Member
Since: Feb 4, 2008
Posts: 208
Last: Jan 23, 2013
[view latest posts]
Level 4
Category: CoD4 Scripting
Posted: Thursday, Mar. 25, 2010 06:29 am
Samuel033 writes...
Quote:
The function is missing from your script file. If it is in another script then you are probably missing the include at the top.


Bingo! That was it, I was missing an include. Missed that one. Thanks for pointing that out to me!
Share |
Samuel033
General Member
Since: Dec 10, 2009
Posts: 484
Last: Dec 25, 2015
[view latest posts]
Level 5
Category: CoD4 Scripting
Posted: Thursday, Mar. 25, 2010 07:50 am
Youre welcome. Its always the simple things that sometimes come back to smack you in the back of the head.[crazy]
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 Scripting

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

»