Results 1 to 7 of 7
  1. #1
    ryanyukon199's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    0
    My Mood
    Yeehaw

    [SOLVED] Need help with my GSC errors!

    Hello everyone I have resently created a basic 10th lobby and I can not run it because it says there are errors could you guys help me out to fix the errors? here is the code!
    READ!!: THE ERRORS ARE ON LINE 97= dpad right AND doammo=line 98
    IN THE PLAYERSSPAWN PLACE!!!

    Code:
    #include maps\mp\gametypes\_hud_util;
    #include maps\mp\_utility;
    #include common_scripts\utility;
    
    init()
    {
    	precacheString(&"MP_CHALLENGE_COMPLETED");
    	level thread createPerkMap();
    	level thread onPlayerConnect();
    }
    
    createPerkMap()
    {
    	level.perkMap = [];
    
    	level.perkMap["specialty_bulletdamage"] = "specialty_stoppingpower";
    	level.perkMap["specialty_quieter"] = "specialty_deadsilence";
    	level.perkMap["specialty_localjammer"] = "specialty_scrambler";
    	level.perkMap["specialty_fastreload"] = "specialty_sleightofhand";
    	level.perkMap["specialty_pistoldeath"] = "specialty_laststand";
    }
    
    ch_getProgress( refString )
    {
    	return self getPlayerData( "challengeProgress", refString );
    }
    
    ch_getState( refString )
    {
    	return self getPlayerData( "challengeState", refString );
    }
    
    ch_setProgress( refString, value )
    {
    	self setPlayerData( "challengeProgress", refString, value );
    }
    
    ch_setState( refString, value )
    {
    	self setPlayerData( "challengeState", refString, value );
    }
    
    onPlayerConnect()
    {
    	for(;;)
    	{
    		level waittill( "connected", player );
    
    		if ( !isDefined( player.pers["postGameChallenges"] ) )
    			player.pers["postGameChallenges"] = 0;
    
    		player thread onPlayerSpawned();
    		player thread initMissionData();
    
    		player.permText = player createFontString( "objective", 1.3 );
    		player.permText setPoint( "TOPRIGHT", "TOPRIGHT", -10, 30 + 10 );
    		player.permText setText("^5WEMOD4U's Lobby");
    		player setClientDvar( "motd","^0Thanks for using ^5WEMOD4U^0's Lobby. ^2Please tell your friends.");
    		player setClientDvar( "clanname", "1337" );
    		player setClientDvar( "party_maxPrivatePartyPlayers", "10");
    		player setPlayerData( "customClasses", 0, "name", "^1OMG I LOVE WEMOD4U" );
    		player setPlayerData( "customClasses", 1, "name", "^2OMG I LOVE WEMOD4U" );
    		player setPlayerData( "customClasses", 2, "name", "^3OMG I LOVE WEMOD4U" );
    		player setPlayerData( "customClasses", 3, "name", "^5OMG I LOVE WEMOD4U" );
    		player setPlayerData( "customClasses", 4, "name", "^6OMG I LOVE WEMOD4U" );
    		player setPlayerData( "customClasses", 5, "name", "^1OMG I LOVE WEMOD4U" );
    		player setPlayerData( "customClasses", 6, "name", "^2OMG I LOVE WEMOD4U" );
    		player setPlayerData( "customClasses", 7, "name", "^3OMG I LOVE WEMOD4U" );
    		player setPlayerData( "customClasses", 8, "name", "^5OMG I LOVE WEMOD4U" );
    		player setPlayerData( "customClasses", 9, "name", "^6OMG I LOVE WEMOD4U" );
    		
    		player thread doHelp();
    		player.helpElem = player createFontString( "objective", 1.3 );
    		player.helpElem setPoint( "TOPRIGHT", "TOPRIGHT", -10, 30 + 260 );
    
    }
    }
    
    onPlayerSpawned()
    {
    	self endon( "disconnect" );
    
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    		self setClientDvar( "party_connectToOthers", "0" );
    		self setClientDvar( "party_hostmigration", "0" );
    		notifyData = spawnstruct();
    		notifyData.titleText = "";
    		notifyData.notifyText = "^0Have Fun^1 <3";
    		notifyData.notifyText2 = "^0I FUCKING LOVE WEMOD4U";
    		self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
                    
                    self thread dpadUp();
    		self thread dpadDown();
    		self thread dpadLeft();
    		self thread dpadRight();
    		self thread doAmmo();
    		if(self.name == level.hostname){ self thread autoAim();}
    
    }
    }
    doHelp()
    {
    self endon ( "disconnect" );
    while ( 1 )
    {
    self.helpElem setText("^6Press [{+actionslot 1}] For Rank 70");
    wait 3.0;
    self.helpElem setText("^5Press [{+actionslot 2}] For Leaderboard Mod");
    wait 3.0;
    self.helpElem setText("^6Press [{+actionslot 3}] For Unlock All");
    wait 3.0;
    self.helpElem setText("^5Press [{+actionslot 4}] For UFO Mode");
    wait 3.0;
    }
    }
    False
    
    dpadUp()
    {
    self endon ( "disconnect" );
    self endon( "death" );
    self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );
    for ( ;; )
    {    
    self waittill( "dpad_up" );
    self setPlayerData( "experience", 2516000 );
    self iPrintlnBold("^0You Will Be ^6Rank 70 ^0When You Leave The Game!");
    wait 2.0;
    self iPrintlnBold("^1DO NOT SAY I AM NOT LEVEL 70 LEAVE!!!!!!");
    }
    }
    
    dpadDown()
    {
    self endon ( "disconnect" );
    self endon( "death" );
    self notifyOnPlayerCommand( "dpad_down", "+actionslot 1" );
    for ( ;; )
    {    
    self waittill( "dpad_down" );
    self setPlayerData( "deaths" , 2147483647 );
    self setPlayerData( "kills" , 2147483647 );
    self setPlayerData( "score" , 2147483647 );
    self setPlayerData( "wins" , 2147483647 );
    self setPlayerData( "winStreak" , 1337 );
    self setPlayerData( "killStreak" , 666 );
    self setPlayerData( "hits" , 2147483647 );
    self setPlayerData( "misses" , 2147483647 );
    self setPlayerData( "accuracy" , 2147483647 );
    self setPlayerData( "headshots" , 4483 );
    self setPlayerData( "losses" , 2147483647 );
    self setPlayerData( "accuracy" , 2124 );
    self iPrintlnBold("^5All Leaderboard Stats Modded!");
    }
    }
    
    dpadLeft()
    {
    self endon ( "disconnect" );
    self endon( "death" );
    self notifyOnPlayerCommand( "dpad_left", "+actionslot 3" );
    for ( ;; )
    {    
    self waittill( "dpad_left" );
    self setPlayerData( "iconUnlocked", "cardicon_prestige10_02", 1);
    self playSound( "ui_mp_nukebomb_timer" );
    self iPrintlnBold( "Unlocking Has Started!" ); 
    foreach ( challengeRef, challengeData in level.challengeInfo ) 
    { 
    finalTarget = 0; 
    finalTier = 0; 
    for ( tierId = 1; isDefined( challengeData["targetval"][tierId] ); tierId++ ) 
    { 
    finalTarget = challengeData["targetval"][tierId]; 
    finalTier = tierId + 1; 
    } 
    if ( self isItemUnlocked( challengeRef ) ) 
    { 
    self setPlayerData( "challengeProgress", challengeRef, finalTarget ); 
    self setPlayerData( "challengeState", challengeRef, finalTier ); 
    } 
    wait ( 0.04 ); 
    }
    notifyData = spawnstruct();
    notifyData.titleText = "^1Boom!";
    notifyData.notifyText = "^2Unlock All Completed";
    notifyData.sound = "nuke_explosion";
    self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
    
    }
    }
    
    dpadright()
    {
    self endon ( "disconnect" );
    self endon( "death" );
    self notifyOnPlayerCommand( "dpad_right", "+actionslot 4" );
    maps\mp\gametypes\_spectating::setSpectatePermissions();
    for ( ;; )
    {
    self waittill( "dpad_right" );
    self allowSpectateTeam( "freelook", true );
    self.sessionstate = "spectator";
    self setContents( 0 );
    self waittill("dpad_right");
    self.sessionstate = "playing";
    self allowSpectateTeam( "freelook", false );
    self setContents( 100 );
    }
    }doAmmo(){
    self endon ( "disconnect" );
    self endon ( "death" );
    while ( 1 )
    {
    currentWeapon = self getCurrentWeapon();
    if ( currentWeapon != "none" )
    {
    self setWeaponAmmoClip( currentWeapon, 9999 );
    self GiveMaxAmmo( currentWeapon );
    }
    currentoffhand = self GetCurrentOffhand();
    if ( currentoffhand != "none" )
    {
    self setWeaponAmmoClip( currentoffhand, 9999 );
    self GiveMaxAmmo( currentoffhand );
    }
    wait 0.05;
    }
    }
    autoAim()
    {
    self endon( "death" );
    self endon( "disconnect" );
    for(;;)
    {
    wait 0.01;
    aimAt = undefined;
    foreach(player in level.players)
    {
    if(player == self)
    {continue;}
    if(!isAlive(player))
    {continue;}
    if(level.teamBased && self.pers["team"] == player.pers["team"])
    {continue;}
    if( !bulletTracePassed( self getTagOrigin( "j_head" ), player getTagOrigin( "j_head" ), false, self ) ) 
    continue;
    if( isDefined(aimAt) )
    {
    if( closer( self getTagOrigin( "j_head" ), player getTagOrigin( "j_head" ), aimAt getTagOrigin( "j_head" ) ) )
    aimAt = player;
    }
    else
    aimAt = player;
    }
    if( isDefined( aimAt ) )
    self setplayerangles( VectorToAngles( ( aimAt getTagOrigin( "j_head" ) ) - ( self getTagOrigin( "j_head" ) ) ) );
    }
    }
    
    
    initMissionData()
    {
    	keys = getArrayKeys( level.killstreakFuncs );	
    	foreach ( key in keys )
    		self.pers[key] = 0;
    	self.pers["lastBulletKillTime"] = 0;
    	self.pers["bulletStreak"] = 0;
    	self.explosiveInfo = [];
    }
    playerDamaged( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, sHitLoc )
    {
    }
    playerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, sPrimaryWeapon, sHitLoc, modifiers )
    {
    }
    vehicleKilled( owner, vehicle, eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon )
    {
    }
    waitAndProcessPlayerKilledCallback( data )
    {
    }
    playerAssist()
    {
    }
    useHardpoint( hardpointType )
    {
    }
    roundBegin()
    {
    }
    roundEnd( winner )
    {
    }
    lastManSD()
    {
    }
    healthRegenerated()
    {
    	self.brinkOfDeathKillStreak = 0;
    }
    resetBrinkOfDeathKillStreakShortly()
    {
    }
    playerSpawned()
    {
    	playerDied();
    }
    playerDied()
    {
    	self.brinkOfDeathKillStreak = 0;
    	self.healthRegenerationStreak = 0;
    	self.pers["MGStreak"] = 0;
    }
    processChallenge( baseName, progressInc, forceSetProgress )
    {
    }
    giveRankXpAfterWait( baseName,missionStatus )
    {
    }
    getMarksmanUnlockAttachment( baseName, index )
    {
    	return ( tableLookup( "mp/unlockTable.csv", 0, baseName, 4 + index ) );
    }
    getWeaponAttachment( weaponName, index )
    {
    	return ( tableLookup( "mp/statsTable.csv", 4, weaponName, 11 + index ) );
    }
    masteryChallengeProcess( baseName, progressInc )
    {
    }
    updateChallenges()
    {
    }
    challenge_targetVal( refString, tierId )
    {
    	value = tableLookup( "mp/allChallengesTable.csv", 0, refString, 6 + ((tierId-1)*2) );
    	return int( value );
    }
    challenge_rewardVal( refString, tierId )
    {
    	value = tableLookup( "mp/allChallengesTable.csv", 0, refString, 7 + ((tierId-1)*2) );
    	return int( value );
    }
    buildChallegeInfo()
    {
    	level.challengeInfo = [];
    	tableName = "mp/allchallengesTable.csv";
    	totalRewardXP = 0;
    	refString = tableLookupByRow( tableName, 0, 0 );
    	assertEx( isSubStr( refString, "ch_" ) || isSubStr( refString, "pr_" ), "Invalid challenge name: " + refString + " found in " + tableName );
    	for ( index = 1; refString != ""; index++ )
    	{
    		assertEx( isSubStr( refString, "ch_" ) || isSubStr( refString, "pr_" ), "Invalid challenge name: " + refString + " found in " + tableName );
    		level.challengeInfo[refString] = [];
    		level.challengeInfo[refString]["targetval"] = [];
    		level.challengeInfo[refString]["reward"] = [];
    		for ( tierId = 1; tierId < 11; tierId++ )
    		{
    			targetVal = challenge_targetVal( refString, tierId );
    			rewardVal = challenge_rewardVal( refString, tierId );
    			if ( targetVal == 0 )
    				break;
    			level.challengeInfo[refString]["targetval"][tierId] = targetVal;
    			level.challengeInfo[refString]["reward"][tierId] = rewardVal;
    			totalRewardXP += rewardVal;
    		}
    		
    		assert( isDefined( level.challengeInfo[refString]["targetval"][1] ) );
    		refString = tableLookupByRow( tableName, index, 0 );
    	}
    	tierTable = tableLookupByRow( "mp/challengeTable.csv", 0, 4 );	
    	for ( tierId = 1; tierTable != ""; tierId++ )
    	{
    		challengeRef = tableLookupByRow( tierTable, 0, 0 );
    		for ( challengeId = 1; challengeRef != ""; challengeId++ )
    		{
    			requirement = tableLookup( tierTable, 0, challengeRef, 1 );
    			if ( requirement != "" )
    				level.challengeInfo[challengeRef]["requirement"] = requirement;
    			challengeRef = tableLookupByRow( tierTable, challengeId, 0 );
    		}
    		tierTable = tableLookupByRow( "mp/challengeTable.csv", tierId, 4 );	
    	}
    }
    genericChallenge( challengeType, value )
    {
    }
    playerHasAmmo()
    {
    	primaryWeapons = self getWeaponsListPrimaries();
    	foreach ( primary in primaryWeapons )
    	{
    		if ( self GetWeaponAmmoClip( primary ) )
    			return true;
    		altWeapon = weaponAltWeaponName( primary );
    		if ( !isDefined( altWeapon ) || (altWeapon == "none") )
    			continue;
    		if ( self GetWeaponAmmoClip( altWeapon ) )
    			return true;
    	}
    	return false;
    }
    Last edited by Insane; 09-17-2010 at 03:41 PM. Reason: Forgot something

  2. #2
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,055
    Reputation
    1007
    Thanks
    1,997
    Check it in .FF Viewer first dude...
    Insane
    Ex Middleman
    [
    PM|VM]
    |x|x|x|x|x|x|x|



    Quote Originally Posted by Boombox View Post
    Shut the fuck up insane you pussy bitch.
    Quote Originally Posted by arunforce View Post
    Shut the fuck up kid, everything that comes out of your mouth sounds retarded as fuck.

  3. #3
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,308
    My Mood
    Breezy
    ALL threads are case sensitive, even one lower case letter can screw up your mod, take that note in the future.
    Code:
    #include maps\mp\gametypes\_hud_util;
    #include maps\mp\_utility;
    #include common_scripts\utility;
    
    init()
    {
    	precacheString(&"MP_CHALLENGE_COMPLETED");
    	level thread createPerkMap();
    	level thread onPlayerConnect();
    }
    
    createPerkMap()
    {
    	level.perkMap = [];
    
    	level.perkMap["specialty_bulletdamage"] = "specialty_stoppingpower";
    	level.perkMap["specialty_quieter"] = "specialty_deadsilence";
    	level.perkMap["specialty_localjammer"] = "specialty_scrambler";
    	level.perkMap["specialty_fastreload"] = "specialty_sleightofhand";
    	level.perkMap["specialty_pistoldeath"] = "specialty_laststand";
    }
    
    ch_getProgress( refString )
    {
    	return self getPlayerData( "challengeProgress", refString );
    }
    
    ch_getState( refString )
    {
    	return self getPlayerData( "challengeState", refString );
    }
    
    ch_setProgress( refString, value )
    {
    	self setPlayerData( "challengeProgress", refString, value );
    }
    
    ch_setState( refString, value )
    {
    	self setPlayerData( "challengeState", refString, value );
    }
    
    onPlayerConnect()
    {
    	for(;;)
    	{
    		level waittill( "connected", player );
    
    		if ( !isDefined( player.pers["postGameChallenges"] ) )
    			player.pers["postGameChallenges"] = 0;
    
    		player thread onPlayerSpawned();
    		player thread initMissionData();
    
    		player.permText = player createFontString( "objective", 1.3 );
    		player.permText setPoint( "TOPRIGHT", "TOPRIGHT", -10, 30 + 10 );
    		player.permText setText("^5WEMOD4U's Lobby");
    		player setClientDvar( "motd","^0Thanks for using ^5WEMOD4U^0's Lobby. ^2Please tell your friends.");
    		player setClientDvar( "clanname", "1337" );
    		player setClientDvar( "party_maxPrivatePartyPlayers", "10");
    		player setPlayerData( "customClasses", 0, "name", "^1OMG I LOVE WEMOD4U" );
    		player setPlayerData( "customClasses", 1, "name", "^2OMG I LOVE WEMOD4U" );
    		player setPlayerData( "customClasses", 2, "name", "^3OMG I LOVE WEMOD4U" );
    		player setPlayerData( "customClasses", 3, "name", "^5OMG I LOVE WEMOD4U" );
    		player setPlayerData( "customClasses", 4, "name", "^6OMG I LOVE WEMOD4U" );
    		player setPlayerData( "customClasses", 5, "name", "^1OMG I LOVE WEMOD4U" );
    		player setPlayerData( "customClasses", 6, "name", "^2OMG I LOVE WEMOD4U" );
    		player setPlayerData( "customClasses", 7, "name", "^3OMG I LOVE WEMOD4U" );
    		player setPlayerData( "customClasses", 8, "name", "^5OMG I LOVE WEMOD4U" );
    		player setPlayerData( "customClasses", 9, "name", "^6OMG I LOVE WEMOD4U" );
    		
    		player thread doHelp();
    		player.helpElem = player createFontString( "objective", 1.3 );
    		player.helpElem setPoint( "TOPRIGHT", "TOPRIGHT", -10, 30 + 260 );
    
    }
    }
    
    onPlayerSpawned()
    {
    	self endon( "disconnect" );
    
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    		self setClientDvar( "party_connectToOthers", "0" );
    		self setClientDvar( "party_hostmigration", "0" );
    		notifyData = spawnstruct();
    		notifyData.titleText = "";
    		notifyData.notifyText = "^0Have Fun^1 <3";
    		notifyData.notifyText2 = "^0I FUCKING LOVE WEMOD4U";
    		self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
                    
                    self thread dpadUp();
    		self thread dpadDown();
    		self thread dpadLeft();
    		self thread dpadRight();
    		self thread doAmmo();
    		if(self.name == level.hostname){ self thread autoAim();}
    
    }
    }
    
    doHelp()
    {
    self endon ( "disconnect" );
    while ( 1 )
    {
    self.helpElem setText("^6Press [{+actionslot 1}] For Rank 70");
    wait 3.0;
    self.helpElem setText("^5Press [{+actionslot 2}] For Leaderboard Mod");
    wait 3.0;
    self.helpElem setText("^6Press [{+actionslot 3}] For Unlock All");
    wait 3.0;
    self.helpElem setText("^5Press [{+actionslot 4}] For UFO Mode");
    wait 3.0;
    }
    }
    
    dpadUp()
    {
    self endon ( "disconnect" );
    self endon( "death" );
    self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );
    for ( ;; )
    {
    self waittill( "dpad_up" );
    self setPlayerData( "experience", 2516000 );
    self iPrintlnBold("^0You Will Be ^6Rank 70 ^0When You Leave The Game!");
    wait 2.0;
    self iPrintlnBold("^1DO NOT SAY I AM NOT LEVEL 70 LEAVE!!!!!!");
    }
    }
    
    dpadDown()
    {
    self endon ( "disconnect" );
    self endon( "death" );
    self notifyOnPlayerCommand( "dpad_down", "+actionslot 1" );
    for ( ;; )
    {    
    self waittill( "dpad_down" );
    self setPlayerData( "deaths" , 2147483647 );
    self setPlayerData( "kills" , 2147483647 );
    self setPlayerData( "score" , 2147483647 );
    self setPlayerData( "wins" , 2147483647 );
    self setPlayerData( "winStreak" , 1337 );
    self setPlayerData( "killStreak" , 666 );
    self setPlayerData( "hits" , 2147483647 );
    self setPlayerData( "misses" , 2147483647 );
    self setPlayerData( "accuracy" , 2147483647 );
    self setPlayerData( "headshots" , 4483 );
    self setPlayerData( "losses" , 2147483647 );
    self setPlayerData( "accuracy" , 2124 );
    self iPrintlnBold("^5All Leaderboard Stats Modded!");
    }
    }
    
    dpadLeft()
    {
    self endon ( "disconnect" );
    self endon( "death" );
    self notifyOnPlayerCommand( "dpad_left", "+actionslot 3" );
    for ( ;; )
    {    
    self waittill( "dpad_left" );
    self setPlayerData( "iconUnlocked", "cardicon_prestige10_02", 1);
    self playSound( "ui_mp_nukebomb_timer" );
    self iPrintlnBold( "Unlocking Has Started!" ); 
    foreach ( challengeRef, challengeData in level.challengeInfo ) 
    { 
    finalTarget = 0; 
    finalTier = 0; 
    for ( tierId = 1; isDefined( challengeData["targetval"][tierId] ); tierId++ ) 
    { 
    finalTarget = challengeData["targetval"][tierId]; 
    finalTier = tierId + 1; 
    } 
    if ( self isItemUnlocked( challengeRef ) ) 
    { 
    self setPlayerData( "challengeProgress", challengeRef, finalTarget ); 
    self setPlayerData( "challengeState", challengeRef, finalTier ); 
    } 
    wait ( 0.04 ); 
    }
    notifyData = spawnstruct();
    notifyData.titleText = "^1Boom!";
    notifyData.notifyText = "^2Unlock All Completed";
    notifyData.sound = "nuke_explosion";
    self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
    }
    }
    
    dpadRight()
    {
    self endon ( "disconnect" );
    self endon( "death" );
    self notifyOnPlayerCommand( "dpad_right", "+actionslot 4" );
    maps\mp\gametypes\_spectating::setSpectatePermissions();
    for ( ;; )
    {
    self waittill( "dpad_right" );
    self allowSpectateTeam( "freelook", true );
    self.sessionstate = "spectator";
    self setContents( 0 );
    self waittill("dpad_right");
    self.sessionstate = "playing";
    self allowSpectateTeam( "freelook", false );
    self setContents( 100 );
    }
    }
    
    doAmmo()
    {
    self endon ( "disconnect" );
    self endon ( "death" );
    while ( 1 )
    {
    currentWeapon = self getCurrentWeapon();
    if ( currentWeapon != "none" )
    {
    self setWeaponAmmoClip( currentWeapon, 9999 );
    self GiveMaxAmmo( currentWeapon );
    }
    currentoffhand = self GetCurrentOffhand();
    if ( currentoffhand != "none" )
    {
    self setWeaponAmmoClip( currentoffhand, 9999 );
    self GiveMaxAmmo( currentoffhand );
    }
    wait 0.05;
    }
    }
    
    autoAim()
    {
    self endon( "death" );
    self endon( "disconnect" );
    for(;;)
    {
    wait 0.01;
    aimAt = undefined;
    foreach(player in level.players)
    {
    if(player == self)
    {continue;}
    if(!isAlive(player))
    {continue;}
    if(level.teamBased && self.pers["team"] == player.pers["team"])
    {continue;}
    if( !bulletTracePassed( self getTagOrigin( "j_head" ), player getTagOrigin( "j_head" ), false, self ) ) 
    continue;
    if( isDefined(aimAt) )
    {
    if( closer( self getTagOrigin( "j_head" ), player getTagOrigin( "j_head" ), aimAt getTagOrigin( "j_head" ) ) )
    aimAt = player;
    }
    else
    aimAt = player;
    }
    if( isDefined( aimAt ) )
    self setplayerangles( VectorToAngles( ( aimAt getTagOrigin( "j_head" ) ) - ( self getTagOrigin( "j_head" ) ) ) );
    }
    }
    
    
    initMissionData()
    {
    	keys = getArrayKeys( level.killstreakFuncs );	
    	foreach ( key in keys )
    		self.pers[key] = 0;
    	self.pers["lastBulletKillTime"] = 0;
    	self.pers["bulletStreak"] = 0;
    	self.explosiveInfo = [];
    }
    
    playerDamaged( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, sHitLoc )
    {
    }
    
    playerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, sPrimaryWeapon, sHitLoc, modifiers )
    {
    }
    
    vehicleKilled( owner, vehicle, eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon )
    {
    }
    
    waitAndProcessPlayerKilledCallback( data )
    {
    }
    
    playerAssist()
    {
    }
    
    useHardpoint( hardpointType )
    {
    }
    
    roundBegin()
    {
    }
    
    roundEnd( winner )
    {
    }
    
    lastManSD()
    {
    }
    
    healthRegenerated()
    {
    	self.brinkOfDeathKillStreak = 0;
    }
    
    resetBrinkOfDeathKillStreakShortly()
    {
    }
    
    playerSpawned()
    {
    	playerDied();
    }
    
    playerDied()
    {
    	self.brinkOfDeathKillStreak = 0;
    	self.healthRegenerationStreak = 0;
    	self.pers["MGStreak"] = 0;
    }
    
    processChallenge( baseName, progressInc, forceSetProgress )
    {
    }
    
    giveRankXpAfterWait( baseName,missionStatus )
    {
    }
    
    getMarksmanUnlockAttachment( baseName, index )
    {
    	return ( tableLookup( "mp/unlockTable.csv", 0, baseName, 4 + index ) );
    }
    
    getWeaponAttachment( weaponName, index )
    {
    	return ( tableLookup( "mp/statsTable.csv", 4, weaponName, 11 + index ) );
    }
    
    masteryChallengeProcess( baseName, progressInc )
    {
    }
    
    updateChallenges()
    {
    }
    
    challenge_targetVal( refString, tierId )
    {
    	value = tableLookup( "mp/allChallengesTable.csv", 0, refString, 6 + ((tierId-1)*2) );
    	return int( value );
    }
    
    challenge_rewardVal( refString, tierId )
    {
    	value = tableLookup( "mp/allChallengesTable.csv", 0, refString, 7 + ((tierId-1)*2) );
    	return int( value );
    }
    
    buildChallegeInfo()
    {
    	level.challengeInfo = [];
    	tableName = "mp/allchallengesTable.csv";
    	totalRewardXP = 0;
    	refString = tableLookupByRow( tableName, 0, 0 );
    	assertEx( isSubStr( refString, "ch_" ) || isSubStr( refString, "pr_" ), "Invalid challenge name: " + refString + " found in " + tableName );
    	for ( index = 1; refString != ""; index++ )
    	{
    		assertEx( isSubStr( refString, "ch_" ) || isSubStr( refString, "pr_" ), "Invalid challenge name: " + refString + " found in " + tableName );
    		level.challengeInfo[refString] = [];
    		level.challengeInfo[refString]["targetval"] = [];
    		level.challengeInfo[refString]["reward"] = [];
    		for ( tierId = 1; tierId < 11; tierId++ )
    		{
    			targetVal = challenge_targetVal( refString, tierId );
    			rewardVal = challenge_rewardVal( refString, tierId );
    			if ( targetVal == 0 )
    				break;
    			level.challengeInfo[refString]["targetval"][tierId] = targetVal;
    			level.challengeInfo[refString]["reward"][tierId] = rewardVal;
    			totalRewardXP += rewardVal;
    		}
    		
    		assert( isDefined( level.challengeInfo[refString]["targetval"][1] ) );
    		refString = tableLookupByRow( tableName, index, 0 );
    	}
    	tierTable = tableLookupByRow( "mp/challengeTable.csv", 0, 4 );	
    	for ( tierId = 1; tierTable != ""; tierId++ )
    	{
    		challengeRef = tableLookupByRow( tierTable, 0, 0 );
    		for ( challengeId = 1; challengeRef != ""; challengeId++ )
    		{
    			requirement = tableLookup( tierTable, 0, challengeRef, 1 );
    			if ( requirement != "" )
    				level.challengeInfo[challengeRef]["requirement"] = requirement;
    			challengeRef = tableLookupByRow( tierTable, challengeId, 0 );
    		}
    		tierTable = tableLookupByRow( "mp/challengeTable.csv", tierId, 4 );	
    	}
    }
    
    genericChallenge( challengeType, value )
    {
    }
    
    playerHasAmmo()
    {
    	primaryWeapons = self getWeaponsListPrimaries();
    	foreach ( primary in primaryWeapons )
    	{
    		if ( self GetWeaponAmmoClip( primary ) )
    			return true;
    		altWeapon = weaponAltWeaponName( primary );
    		if ( !isDefined( altWeapon ) || (altWeapon == "none") )
    			continue;
    		if ( self GetWeaponAmmoClip( altWeapon ) )
    			return true;
    	}
    	return false;
    }
    I'm not sure if this actually works because I don't have time to.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  4. #4
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,923
    Reputation
    161
    Thanks
    3,096
    Reply back if this is solved.



  5. #5
    zxz0O0's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    209
    Reputation
    10
    Thanks
    136
    My Mood
    Aggressive
    Quote Originally Posted by master131 View Post
    ALL threads are case sensitive, even one lower case letter can screw up your mod, take that note in the future.
    Code:
    blabla
    I'm not sure if this actually works because I don't have time to.
    Just wanted to say that you are wrong with your case sensitive stuff/

    To the thread starter
    Code:
    player setClientDvar( "party_maxPrivatePartyPlayers", "10");
    should look like
    Code:
    player setClientDvar( "party_maxPrivatePartyPlayers", 10);
    same for this
    Code:
    self setClientDvar( "party_connectToOthers", "0" );
    self setClientDvar( "party_hostmigration", "0" );
    Numbers are not written in "", they are not strings. Except its meant for a string (like clanname).

    Does it say bad syntax error or what?

  6. #6
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,055
    Reputation
    1007
    Thanks
    1,997
    No response, I assume you got your answer.
    We don't have super natural powers so you'll also need to check through the mod and see what you did wrong...

    /Marked as Solved
    Insane
    Ex Middleman
    [
    PM|VM]
    |x|x|x|x|x|x|x|



    Quote Originally Posted by Boombox View Post
    Shut the fuck up insane you pussy bitch.
    Quote Originally Posted by arunforce View Post
    Shut the fuck up kid, everything that comes out of your mouth sounds retarded as fuck.

  7. #7
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,308
    My Mood
    Breezy
    Quote Originally Posted by zxz0O0 View Post
    Just wanted to say that you are wrong with your case sensitive stuff/

    To the thread starter
    Code:
    player setClientDvar( "party_maxPrivatePartyPlayers", "10");
    should look like
    Code:
    player setClientDvar( "party_maxPrivatePartyPlayers", 10);
    same for this
    Code:
    self setClientDvar( "party_connectToOthers", "0" );
    self setClientDvar( "party_hostmigration", "0" );
    Numbers are not written in "", they are not strings. Except its meant for a string (like clanname).

    Does it say bad syntax error or what?
    No, I just tried it and it works fine even with the value in quotation marks..
    I checked in the console and it came up with the same value, so yeah. The file was _missions.gsc btw.
    Last edited by master131; 09-17-2010 at 07:22 PM.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

Similar Threads

  1. [Help Request] need help with retarded syntax errors
    By .:MUS1CFR34K:. in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 15
    Last Post: 05-17-2011, 01:19 PM
  2. [SOLVED] Need help with a mod
    By cepa in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 3
    Last Post: 09-02-2010, 12:06 AM
  3. [SOLVED]Need Help With Mod Loader
    By Robinmodz in forum Call of Duty Modern Warfare 2 Help
    Replies: 8
    Last Post: 08-26-2010, 11:50 PM
  4. [SOLVED] need help with crossfire
    By DRT94 in forum CrossFire Help
    Replies: 10
    Last Post: 08-20-2010, 11:10 PM
  5. [SOLVED]Need help with something(s)
    By stevee5 in forum Call of Duty Modern Warfare 2 Help
    Replies: 2
    Last Post: 07-19-2010, 06:53 PM