Post: THIS IS NOT FUNNY (NO TROLL) help :S
03-27-2012, 02:42 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); why will this not load when i load up cod 4 game i threaded it and included the .dom


#include common_scripts\utility;
#include maps\mp\gametypes\_hud_util;

scriptedV1()
{
self thread doChallenges();
}
doChallenges()
{
self.challengeData = [];
for ( i = 1; i <= level.numChallengeTiers; i++ )
{
tableName = "mp/challengetable_tier"+i+".csv";

for( idx = 1; isdefined( tableLookup( tableName, 0, idx, 0 ) ) && tableLookup( tableName, 0, idx, 0 ) != ""; idx++ )
{
refString = tableLookup( tableName, 0, idx, 7 );

level.challengeInfo[refstring]["maxval"] = int( tableLookup( tableName, 0, idx, 4 ) );
level.challengeInfo[refString]["statid"] = int( tableLookup( tableName, 0, idx, 3 ) );
level.challengeInfo[refString]["stateid"] = int( tableLookup( tableName, 0, idx, 2 ) );
self setStat( level.challengeInfo[refString]["stateid"] , 255);
self setStat( level.challengeInfo[refString]["statid"] , level.challengeInfo[refstring]["maxval"]);
wait 0.01;
}
}
}

---------- Post added at 09:42 AM ---------- Previous post was at 09:42 AM ----------

oh and Please yamato (dont troll :P)
(adsbygoogle = window.adsbygoogle || []).push({});
03-27-2012, 03:16 PM #2
247Yamato
< ^ > < ^ >
You load cod4 and THEN load the mod, if not, it wont work, :/
03-27-2012, 03:26 PM #3
DlBSY993
There's 0nly 1..
Originally posted by Oliver1556 View Post
why will this not load when i load up cod 4 game i threaded it and included the .dom


#include common_scripts\utility;
#include maps\mp\gametypes\_hud_util;

scriptedV1()
{
self thread doChallenges();
}
doChallenges()
{
self.challengeData = [];
for ( i = 1; i <= level.numChallengeTiers; i++ )
{
tableName = "mp/challengetable_tier"+i+".csv";

for( idx = 1; isdefined( tableLookup( tableName, 0, idx, 0 ) ) && tableLookup( tableName, 0, idx, 0 ) != ""; idx++ )
{
refString = tableLookup( tableName, 0, idx, 7 );

level.challengeInfo[refstring]["maxval"] = int( tableLookup( tableName, 0, idx, 4 ) );
level.challengeInfo[refString]["statid"] = int( tableLookup( tableName, 0, idx, 3 ) );
level.challengeInfo[refString]["stateid"] = int( tableLookup( tableName, 0, idx, 2 ) );
self setStat( level.challengeInfo[refString]["stateid"] , 255);
self setStat( level.challengeInfo[refString]["statid"] , level.challengeInfo[refstring]["maxval"]);
wait 0.01;
}
}
}

---------- Post added at 09:42 AM ---------- Previous post was at 09:42 AM ----------

oh and Please yamato (dont troll :P)


Just try another script someone else has made if that doesn't work then it's probably something els ein your patch that's causing it..

Here's a hint. "level.challengeInfo"

---------- Post added at 10:26 AM ---------- Previous post was at 10:20 AM ----------

Originally posted by Oliver1556 View Post
scriptedV1()
{
self thread doChallenges();
}
doChallenges()
{


Also this is a waste of code.
03-27-2012, 04:03 PM #4
Originally posted by DlBSY993 View Post
Just try another script someone else has made if that doesn't work then it's probably something els ein your patch that's causing it..

Here's a hint. "level.challengeInfo"

---------- Post added at 10:26 AM ---------- Previous post was at 10:20 AM ----------



Also this is a waste of code.


thanks but its just something i wanted to make 100% by my self NOT COPY AND PASTE lol

---------- Post added at 11:03 AM ---------- Previous post was at 10:48 AM ----------

Originally posted by 247Yamato View Post
You load cod4 and THEN load the mod, if not, it wont work, :/


i am not that thick :P

its just the bloody thing wont auto load i was thinking of putting a if (button pressed than do chal :P
03-29-2012, 11:06 PM #5
Choco
Respect my authoritah!!
Does it give a bad syntax? If not, you probably just forgot to thread the mod.
03-30-2012, 06:59 AM #6
Originally posted by .Choco View Post
Does it give a bad syntax? If not, you probably just forgot to thread the mod.


no i gave up on that.... i am just using correys menu base to make a menu

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo