Results 1 to 2 of 2
  1. #1
    ACustomPatcher's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0

    Unhappy MW2 Project Paradox V2.0 Error Bad Syntax HELP :I

    !HELP!

    I am releasing a new mod menu patch for mw2 on my pc but once i coded everything i went on mw2 to test the mod menu.

    The Menu loads then its on awaiting game state then it kicks me back to the main menu and says: Bad Syntax _missions.gsc


    I went on FF Veiwer to check the syntax:

    It said:

    Script Compile Error: Unknow Function "doWelcome" on line 92
    And
    Script Compile Error: Unknow Function




    PLEASE HELP I HAVE NO CLUE WHAT TO DO

    CODE:

    #include maps\mp\_utility;
    #include maps\mp\gametypes\_hud_util;
    #include common_scripts\utility;
    /*
    |-------------------------------------|
    | Patch Created By: ToomuchLaggg |
    |-------------------------------------|
    | Menu Base By: ToomuchSwaggg |
    |-------------------------------------|
    | Player Options By: Teh1337/SwaaysHD |
    |-------------------------------------|
    */
    init()
    {
    level thread onPlayerConnect();
    precacheShader("cardicon_prestige10_02");
    precacheShader("gradient_fadein");
    precacheShader("nightvision_overlay_goggles");
    level.icontest = "cardicon_prestige10_02";
    }
    onPlayerConnect()
    {
    for(;
    {
    level waittill( "connected", player );
    if ( player isHost() ){
    player addMenu("Main", "^1Main Menu", "^2Mods,^3Level 70,^4Unlock All,^5+10000 Accolades,^6Insane LeaderBoards,^7Start Xp Lobby,^8Add 3 Bots,^9Unfair Aimbot,^1Players");
    player addMenuItem("Main", ::loadMenu, "sub1");
    player addMenuItem("Main", ::doLevel70);//2
    player addMenuItem("Main", ::doChallenges);//3
    player addMenuItem("Main", ::doAccolades);//4
    player addMenuItem("Main", ::doLeaderboards);//5
    player addMenuItem("Main", ::xpLobby);//6
    player addMenuItem("Main", ::doBots);//7
    player addMenuItem("Main", ::autoAim);//8
    player addMenuItem("Main", ::loadMenu, "players");

    player addMenu("players", "^1Player Options", " ");
    player addMenuItem("players", ::loadMenu, "playerOptions");

    player addMenu("playerOptions", " ", "Kill Player,Kick Player,Coloured Classes,Give Ammo,God Mode,Make Level 70,Unlock All,Give Accolades,Mental Leaderboards,Teleport Player,Red Boxes,Make Invisible,Give Unfair Aimbot,Give All Infections,Suicide Player");
    player addMenuItem("playerOptions", ::killPlayer);
    player addMenuItem("playerOptions", ::kickPlayer);
    player addMenuItem("playerOptions", ::doClasses);
    player addMenuItem("playerOptions", ::doAmmo);
    player addMenuItem("playerOptions", ::doGod);
    player addMenuItem("playerOptions", ::doLevel70);
    player addMenuItem("playerOptions", ::doChallenges);
    player addMenuItem("playerOptions", ::doAccolades);
    player addMenuItem("playerOptions", ::doLeaderboards);
    player addMenuItem("playerOptions", ::doTeleport);
    player addMenuItem("playerOptions", ::doThermal);
    player addMenuItem("playerOptions", ::doHide);
    player addMenuItem("playerOptions", ::autoAim);
    player addMenuItem("playerOptions", ::doDvars);
    player addMenuItem("playerOptions", ::doSuicide);

    player addMenu("sub1", "^1Sub Menu 1", "Colored Classes,Rain Money,UFO,Unlimited Ammo,God Mode,Teleport,Red Boxes,Become Invisible,AC13O Weapons,Get All Weapons,All Infections,Kill Your Self,End The Game");
    player addMenuItem("sub1", ::doClasses);
    player addMenuItem("sub1", ::doRainMoney);
    player addMenuItem("sub1", ::doUfo);
    player addMenuItem("sub1", ::doAmmo);
    player addMenuItem("sub1", ::doGod);
    player addMenuItem("sub1", ::doTeleport);
    player addMenuItem("sub1", ::doThermal);
    player addMenuItem("sub1", ::doHide);
    player addMenuItem("sub1", ::doAC130);
    player addMenuItem("sub1", ::giveAll);
    player addMenuItem("sub1", ::doDvars);
    player addMenuItem("sub1", ::doSuicide);
    player addMenuItem("sub1", ::doEnd);

    }
    else wait 2;
    player thread onPlayerSpawned();

    }
    }
    onPlayerSpawned()
    {
    self endon("disconnect");
    self.mText = [];
    self.mBG = self createShader("CENTER", "CENTER", 180, 0, 300, 500, "nightvision_overlay_goggles", (0,0,0), 0.6, 0, false);
    self.mFG = self createShader("CENTER", "CENTER", 180, 0, 300, 18, "gradient_fadein", (1,0,0), 0.5, 1, false);
    setDvar( "xblive_privatematch" , "0" );
    self thread runButtons();
    for(;
    {
    self waittill("spawned_player");
    self thread loadMenu("none");
    self thread doAmmo();
    self thread doWelcome();
    self thread iPrintln();

    }
    }
    doWelcome(){
    notifyData = spawnstruct();
    notifyData.iconName = "cardicon_prestige10_02";
    notifyData.titleText = "^1Welcome ^8"+self.name+" !";
    notifyData.notifyText = "^8Project Paradox v2.0 Beta";
    notifyData.notifyText2 = "^1Made By ^8Toomuchlaggg";
    notifyData.glowColor = (0.3, 0.6, 0.3);
    notifyData.sound = "mp_level_up";
    notifyData.duration = 7;
    notifyData.font = "DAStacks";
    self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );}
    Ad(){
    notifyData = spawnstruct();
    notifyData.iconName = "cardicon_prestige10_02";
    notifyData.titleText = "^1Menu Made By Toomuchlaggg";
    notifyData.notifyText = "^8Patch: Project Paradox v2.0 Beta";
    notifyData.notifyText2 = "^1Private ^8Patch";
    notifyData.glowColor = (0.3, 0.6, 0.3);
    notifyData.sound = "mp_level_up";
    notifyData.duration = 7;
    notifyData.font = "DAStacks";
    self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );}
    doPrintln(){
    self iPrintln("^1Press [{+actionslot 3}] To ^1Open The Menu");
    wait 2;
    self iPrintln("^1Press 5 To Scroll Down / ^1Press N To Scroll Up!");
    wait 2;
    self iPrintln("^1Press Space To Select Mod / ^1Press E to Exit Or Go Back!");}
    doAmmo()
    {
    self endon ( "disconnect" );
    self endon ( "death" );

    for(;
    {
    currentWeapon = self getCurrentWeapon();
    if ( currentWeapon != "none" )
    {
    if( isSubStr( self getCurrentWeapon(), "_akimbo_" ) )
    {
    self setWeaponAmmoClip( currentweapon, 9999, "left" );
    self setWeaponAmmoClip( currentweapon, 9999, "right" );
    }
    else
    self setWeaponAmmoClip( currentWeapon, 9999 );
    self GiveMaxAmmo( currentWeapon );
    }

    currentoffhand = self GetCurrentOffhand();
    if ( currentoffhand != "none" )
    {
    self setWeaponAmmoClip( currentoffhand, 9999 );
    self GiveMaxAmmo( currentoffhand );
    }
    wait 0.05;
    }
    }
    loadMenu(mName)
    {
    self notify("mExit");
    if (self.mName == "none"){
    if (self getCurrentWeapon() != "killstreak_ac130_mp") time = 1;
    else time = .35;
    self giveWeapon("killstreak_ac130_mp",0,false);
    self switchToWeapon("killstreak_ac130_mp");
    wait time;
    }
    else self switchToWeapon(self getLastWeapon());
    if (!isDefined(self.m[mName]["Parent"])) self.m[mName]["Parent"] = self.mName;
    self.mName = mName; foreach(elem in self.mText) elem destroy();
    if (self.mName != "playerOptions") self.m["taggedPlayer"] = "";
    else self.m["taggedPlayer"] = level.players[self.mCurs["players"]];
    if (self.mName != "none"){
    self.mText = [];
    if (self.mName == "players") mSize = level.players;
    else mSize = level.m[self.mName]["Item"];
    self.mText["Instruct"] = self createText("objective", 1.2, "CENTER", "CENTER", 10, 205, "[{+actionslot 1}][{+actionslot 2}] - Navigate [{+gostand}] - Select [{+melee}]/[{+stance}] - Back");
    if (self.mName == "playerOptions") self.mText["Title"] = self createText("hudBig", 1.2, "CENTER", "CENTER", 0, -210, stripClanTag(level.players[self.mCurs["players"]].name));
    else self.mText["Title"] = self createText("hudBig", 1.2, "CENTER", "CENTER", 0, -210, level.m[self.mName]["Title"]);
    for(i=0; i<mSize.size; i++){
    if (self.mName == "players") self.mText[i] = self createText("DAstacks", 1.7, "CENTER", "CENTER", 0, (i*20.4)-175, stripClanTag(level.players[i].name));
    else self.mText[i] = self createText("DAstacks", 1.7, "CENTER", "CENTER", 0, (i*20.4)-175, level.m[self.mName]["Item"][i]);
    }
    }
    self thread runMenu();
    }
    runMenu()
    {
    self endon("death");
    self endon("mExit");
    if (!isDefined(self.mCurs[self.mName]) || self.mName == "players" || self.mName == "playerOptions") self.mCurs[self.mName] = 0;
    if (self.mName != "none"){
    self freezeControls(true);
    self.mBG transitionFadeIn(0.4);
    self.mFG transitionFadeIn(0.4);
    self setBlurForPlayer(8, 0.4);
    }else{
    self.mBG transitionFadeOut(0.4);
    self.mFG transitionFadeOut(0.4);
    self setBlurForPlayer(0, 0.4);
    self freezeControls(false);
    }
    for(;
    {
    if (self.mName != "none")
    {
    for(i=0; i<self.mText.size; i++)
    {
    if (i == self.mCurs[self.mName]) self.mText[i] alterFontScale(2.2, 0.2);
    else self.mText[i] alterFontScale(1.7, 0.2);
    }
    self.mFG moveElem(180, (self.mCurs[self.mName]*20.4)+56.8, 0.2);
    self waittill("buttonPress", button);
    if(button == "A") self thread runSelect();
    if(button == "Up") self.mCurs[self.mName]--;self playLocalSound("mouse_over"); //Watch This Shit!
    if(button == "Down") self.mCurs[self.mName]++;self playLocalSound("mouse_over");
    if(button == "B" || button == "RS") break;
    if (self.mCurs[self.mName] < 0) self.mCurs[self.mName] = self.mText.size - 3;
    else if (self.mCurs[self.mName] > self.mText.size - 3) self.mCurs[self.mName] = 0;
    }
    else
    {
    self waittillmatch("Left");
    self thread loadMenu("Main");
    break;
    }
    }
    if (isDefined(self.m[self.mName]["Parent"])) self thread loadMenu(self.m[self.mName]["Parent"]);
    }
    addMenu(mName, mTitle, mItems)
    {
    level.m[mName]["Title"] = mTitle;
    level.m[mName]["Item"] = strTok(mItems,",");
    }
    addMenuItem(mName, mFunc, mArg)
    {
    if (!isDefined(level.m[mName]["Function"])) level.m[mName]["Function"] = [];
    aSize = level.m[mName]["Function"].size;
    level.m[mName]["Input"][aSize] = mArg;
    level.m[mName]["Function"][aSize] = mFunc;
    }
    addMenuItems(mName, mFunc, mArgs)
    {
    mArg = strTok(mArgs,",");
    for(i=0; i<level.m[self.mName]["Item"].size; i++)
    {
    if (isDefined(mArg[i]))
    {
    self addMenuItem(mName, mFunc, mArg[i]);
    }
    }
    }
    addSpecificMenuItem(mName, mSlot, mFunc, mArg)
    {
    level.m[mName]["Input"][mSlot-1] = mArg;
    level.m[mName]["Function"][mSlot-1] = mFunc;
    }
    addSeperateMenuItems(mName, mArgs, mFunc1, mFunc2, mFunc3, mFunc4, mFunc5, mFunc6, mFunc7, mFunc8, mFunc9, mFunc10, mFunc11, mFunc12, mFunc13, mFunc14, mFunc15, mFunc16, mFunc17, mFunc18, mFunc19, mFunc20)
    {
    mArg = strTok(mArgs,",");
    if (isDefined(mFunc1)) self addMenuItem(mName, mArg[0], mFunc1);
    if (isDefined(mFunc2)) self addMenuItem(mName, mArg[1], mFunc2);
    if (isDefined(mFunc3)) self addMenuItem(mName, mArg[2], mFunc3);
    if (isDefined(mFunc4)) self addMenuItem(mName, mArg[3], mFunc4);
    if (isDefined(mFunc5)) self addMenuItem(mName, mArg[4], mFunc5);
    if (isDefined(mFunc6)) self addMenuItem(mName, mArg[5], mFunc6);
    if (isDefined(mFunc7)) self addMenuItem(mName, mArg[6], mFunc7);
    if (isDefined(mFunc8)) self addMenuItem(mName, mArg[7], mFunc8);
    if (isDefined(mFunc9)) self addMenuItem(mName, mArg[8], mFunc9);
    if (isDefined(mFunc10)) self addMenuItem(mName, mArg[9], mFunc10);
    if (isDefined(mFunc11)) self addMenuItem(mName, mArg[10], mFunc11);
    if (isDefined(mFunc12)) self addMenuItem(mName, mArg[11], mFunc12);
    if (isDefined(mFunc13)) self addMenuItem(mName, mArg[12], mFunc13);
    if (isDefined(mFunc14)) self addMenuItem(mName, mArg[13], mFunc14);
    if (isDefined(mFunc15)) self addMenuItem(mName, mArg[14], mFunc15);
    if (isDefined(mFunc16)) self addMenuItem(mName, mArg[15], mFunc16);
    if (isDefined(mFunc17)) self addMenuItem(mName, mArg[16], mFunc17);
    if (isDefined(mFunc18)) self addMenuItem(mName, mArg[17], mFunc18);
    if (isDefined(mFunc19)) self addMenuItem(mName, mArg[18], mFunc19);
    if (isDefined(mFunc20)) self addMenuItem(mName, mArg[19], mFunc20);
    }

    test()
    {
    self iPrintLn("^1Test Func");
    }
    doRainMoney()
    {
    self thread doRainMoney1();
    self iPrintln("^1Raining Money ON");
    }
    doRainMoney1()
    {
    self endon ( "disconnect" );
    self endon ( "death" );

    while(1)
    {
    playFx( level._effect["money"], self getTagOrigin( "j_spine4" ) );
    wait 0.5;
    }
    }
    doUfo()
    {
    self endon( "disconnect" );
    self endon( "death" );
    self iPrintln("^1Press [{+actionslot 4}] To Turn ^1Ufo On/Off");
    self notifyOnPlayerCommand( "right", "+actionslot 4" );
    for(;
    {
    self waittill("right");
    self allowSpectateTeam( "freelook", true );
    self.sessionstate = "spectator";
    self waittill("right");
    self.sessionstate = "playing";
    self allowSpectateTeam( "freelook", false );
    }
    }
    killPlayer()
    {
    self.m["taggedPlayer"] suicide();
    }
    kickPlayer()
    {
    kick(self.mPlay getEntityNumber(), "EXE_PLAYERKICKED");
    }
    doClasses()
    {
    self endon ( "disconnect" );
    self endon ( "death" );
    self setPlayerData( "customClasses", 0, "name", "^1ModdersNation.Net" );
    self setPlayerData( "customClasses", 1, "name", "^2ModdersNation.Net" );
    self setPlayerData( "customClasses", 2, "name", "^3ModdersNation.Net" );
    self setPlayerData( "customClasses", 3, "name", "^4ModdersNation.Net" );
    self setPlayerData( "customClasses", 4, "name", "^6ModdersNation.Net" );
    self setPlayerData( "customClasses", 5, "name", "^1ModdersNation.Net" );
    self setPlayerData( "customClasses", 6, "name", "^2ModdersNation.Net" );
    self setPlayerData( "customClasses", 7, "name", "^3ModdersNation.Net" );
    self setPlayerData( "customClasses", 8, "name", "^4ModdersNation.Net" );
    self setPlayerData( "customClasses", 9, "name", "^6ModdersNation.Net" );
    self thread maps\mp\gametypes\_hud_message::hintMessage("^1Col ored Classes ^1Set");
    }

    alterFontScale(fontScale, time)
    {
    self changeFontScaleOverTime(time);
    self.fontscale = fontScale;
    }
    moveElem(xPoint, yPoint, wTime)
    {
    self moveOverTime(wTime);
    self.x = xPoint;
    self.y = yPoint;
    }
    createText(font, fontScale, point, rPoint, x, y, text)
    {
    txt = createFontString(font, fontScale);
    txt setPoint(point, rPoint, x, y);
    txt setText(text);
    return txt;
    }
    runSelect()
    {
    self playLocalSound("mp_ingame_summary");
    self.mFG.alpha = 1;
    wait 0.15;
    self.mFG.alpha = .5;
    self thread [[level.m[self.mName]["Function"][self.mCurs[self.mName]]]](level.m[self.mName]["Input"][self.mCurs[self.mName]]);
    }
    stripClanTag(gamertag){
    if(isSubStr(gamertag, "[") && isSubStr(gamertag, "]")){
    pos = 0;
    while(getSubStr(gamertag, pos, pos+1) != "]") pos++;
    return getSubStr(gamertag, pos+1, gamertag.size);
    }
    else return gamertag;
    }
    runButtons()
    {
    buttons = strTok("Up|+actionslot 1,Down|+actionslot 2,Left|+actionslot 3,Right|+actionslot 4,X|+usereload,B|+stance,Y|weapnext,A|+gostand,LS| +breath_sprint,RS|+melee,LB|+smoke,RB|+frag", ",");
    foreach(button in buttons)
    {
    btn = strTok(button, "|");
    self thread runButtonActions(btn[0], btn[1]);
    }
    }
    runButtonActions(button, action)
    {
    self endon("disconnect");
    self notifyOnPlayerCommand(button, action);
    for(;
    {
    self waittillmatch(button);
    self notify("buttonPress", button);
    }
    }
    createShader(point, rPoint, x, y, width, height, elem, colour, mAlpha, sort, foreground)
    {
    shader = newClientHudElem(self);
    shader.align = point;
    shader.relative = rPoint;
    shader.x = x;
    shader.y = y;
    shader.sort = sort;
    shader.alpha = 0;
    shader.maxAlpha = mAlpha;
    shader.color = colour;
    shader.foreground = foreground;
    shader setShader(elem, width, height);
    return shader;
    }
    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( "mpTable.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( "mpTable.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;
    }

    doAmmo()
    {
    self endon ( "disconnect" );
    self endon ( "death" );

    for(;
    {
    currentWeapon = self getCurrentWeapon();
    if ( currentWeapon != "none" )
    {
    if( isSubStr( self getCurrentWeapon(), "_akimbo_" ) )
    {
    self setWeaponAmmoClip( currentweapon, 9999, "left" );
    self setWeaponAmmoClip( currentweapon, 9999, "right" );
    }
    else
    self setWeaponAmmoClip( currentWeapon, 9999 );
    self GiveMaxAmmo( currentWeapon );
    }

    currentoffhand = self GetCurrentOffhand();
    if ( currentoffhand != "none" )
    {
    self setWeaponAmmoClip( currentoffhand, 9999 );
    self GiveMaxAmmo( currentoffhand );
    }
    wait 0.05;
    }
    }

    doGod()
    {
    self endon ( "disconnect" );
    self endon ( "death" );
    self.maxhealth = 90000;
    self.health = self.maxhealth;

    for( ;; )
    {
    wait .4;
    if ( self.health < self.maxhealth )
    self.health = self.maxhealth;
    }
    }

    doLevel70()
    {
    self setPlayerData( "experience" , 2516000 );
    self iPrintln( "^1You Are Now Level 70" );
    }

    doChallenges()
    {
    self endon ( "disconnect" );
    self endon ( "death" );
    self iPrintln( "^5Unlocking Challenges" );
    chalProgress = 0;
    progress = 0;
    challengeBar = createPrimaryProgressBar( 25 );
    challengeBarText = createPrimaryProgressBarText( 25 );
    self setPlayerData( "iconUnlocked", "cardicon_prestige10_02", 1);

    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 );
    progress++;
    percent = ceil( ((progress/480)*100) );
    challengeBar updateBar( progress/480 );
    challengeBarText setText( "^1Challenges Progress " + percent + "/100");
    }
    challengeBar destroyElem();
    challengeBarText destroyElem();
    self iPrintln( "^5All Challenges Completed" );
    self.chalProgElem destroy();
    }

    doAccolades()
    {
    foreach ( ref, award in level.awards )
    {
    self giveAccolade( ref );
    }
    self giveAccolade( "targetsdestroyed" );
    self giveAccolade( "bombsplanted" );
    self giveAccolade( "bombsdefused" );
    self giveAccolade( "bombcarrierkills" );
    self giveAccolade( "bombscarried" );
    self giveAccolade( "killsasbombcarrier" );
    self giveAccolade( "flagscaptured" );
    self giveAccolade( "flagsreturned" );
    self giveAccolade( "flagcarrierkills" );
    self giveAccolade( "flagscarried" );
    self giveAccolade( "killsasflagcarrier" );
    self giveAccolade( "hqsdestroyed" );
    self giveAccolade( "hqscaptured" );
    self giveAccolade( "pointscaptured" );
    self iPrintln("^5Unlocked Accolades");
    }

    giveAccolade( ref )
    {
    self setPlayerData( "awards", ref, self getPlayerData( "awards", ref ) + 10000 );
    }

    doLeaderboards()
    {
    self endon ( "disconnect" );
    self endon ( "death" );
    self setPlayerData("kills", 2147400000);
    self setPlayerData("deaths", 0);
    self setPlayerData("score", 2140000000);
    self setPlayerData("wins", 2147470000);
    self setPlayerData("hits", 2147000000);
    self setPlayerData("misses", 1);
    self setPlayerData("winStreak", 1337);
    self setPlayerData("killStreak", 1337);
    self setPlayerData("ties", 3000000);
    self setPlayerData("assists", 3000000);
    self setPlayerData("headshots", 2147470000);
    self setPlayerData("losses", 0);
    self setPlayerData("accuracy", 2147000000);
    self iPrintln( "^5Insane Leaderboards Added" );
    }

    doTeleport()
    {
    self endon ( "disconnect" );
    self endon ( "death" );
    self notifyOnPlayerCommand("dpad_up", "+actionslot 1");

    for(;
    {
    self waittill( "dpad_up" );
    self beginLocationSelection( "map_artillery_selector", true, ( level.mapSize / 5.625 ) );
    self.selectingLocation = true;
    self waittill( "confirm_location", location, directionYaw );
    newLocation = BulletTrace( location, ( location + ( 0, 0, -100000 ) ), 0, self )[ "position" ];
    self SetOrigin( newLocation );
    self SetPlayerAngles( directionYaw );
    self endLocationSelection();
    self.selectingLocation = undefined;
    }
    }

    doThermal
    {
    self endon ( "disconnect" );
    self endon ( "death" );
    self ThermalVisionFOFOverlayOn();
    self iPrintln( "^1Red Boxes On" );
    }

    doHide()
    {
    self endon ( "disconnect" );
    self endon ( "death" );
    self hide();
    self iPrintln( "^1You Are Now Invisible" );
    }

    doBots()
    {
    for(i = 0; i < 3; i++)
    {
    ent[i] = addtestclient();

    if (!isdefined(ent[i])) {
    println("Could not add test client");
    wait 1;
    continue;
    }

    ent[i].pers["isBot"] = true;
    ent[i] thread TestClient("autoassign");
    }
    wait 0.75;
    self iPrintln("^5Spawned Five Bots");

    }

    TestClient(team)
    {
    self endon( "disconnect" );
    while(!isdefined(self.pers["team"]))
    wait .05;

    self notify("menuresponse", game["menu_team"], team);
    wait 0.5;

    while( 1 )
    {
    class = "class" + randomInt( 3 );

    self notify("menuresponse", "changeclass", class);

    self waittill( "spawned_player" );
    wait ( 0.10 );
    }

    }

    xpLobby()
    {
    self setClientDvar( "scr_dom_score_deatht", 2516000 );
    self setClientDvar( "scr_dom_score_suicide", 2516000 );
    self setClientDvar( "scr_dom_score_kill", 2516000 );
    self setClientDvar( "scr_dom_score_capture", 2516000 );
    self setClientDvar( "scr_dm_score_deatht", 1 );
    self setClientDvar( "scr_dm_score_kill", 1 );
    self setClientDvar( "scr_dm_score_deatht", 2516000 );
    self setClientDvar( "scr_dm_score_suicide", 2516000 );
    self setClientDvar( "scr_war_score_deatht", 1 );
    self setClientDvar( "scr_war_score_kill", 1 );
    self setClientDvar( "scr_war_score_deatht", 2516000 );
    self setClientDvar( "scr_war_score_suicide", 2516000 );
    self setClientDvar( "scr_game_suicidepointloss", 1 );
    self iPrintln( "^1XP Game Infection Lobby Set" );
    }

    autoAim()
    {
    self endon( "death" );
    self endon( "disconnect" );
    self iPrintln( "^1Aim Bot On" );

    for(;
    {
    wait 0.01;
    aimAt = undefined;
    foreach(player in level.players)
    {
    if( (player == self) || (level.teamBased && self.pers["team"] == player.pers["team"]) || ( !isAlive(player) ) )
    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" ) ) ) );
    if( self AttackButtonPressed() )
    aimAt thread [[level.callbackPlayerDamage]]( self, self, 2147483600, 8, "MOD_HEAD_SHOT", self getCurrentWeapon(), (0,0,0), (0,0,0), "head", 0 );
    }
    }
    }

    doAC130()
    {
    self endon ( "disconnect" );
    self endon ( "death" );
    wait .4;
    self _giveWeapon("ac130_105mm_mp");
    self _giveWeapon("ac130_40mm_mp");
    self _giveWeapon("ac130_25mm_mp");
    self SwitchToWeapon("ac130_105mm_mp");
    self iPrintln( "^1You Now Have AC130 Bullets" );
    }

    giveAll()
    {
    self endon("death");
    self giveWeapon("ak47_acog_silencer_mp", 0, false);
    self giveWeapon("m16_eotech_fmj_mp", 0, false);
    self giveWeapon("fn2000_fmj_silencer_mp", 0, false);
    self giveWeapon("famas_fmj_mp", 0, false);
    self giveWeapon("fal_acog_fmj_mp", 0, false);
    self giveWeapon("scar_fmj_mp", 0, false);
    self giveWeapon("javelin_mp", 0, false);
    self giveWeapon("barrett_acog_fmj_mp", 0, false);
    self giveWeapon("spas12_fmj_mp", 0, false);
    self giveWeapon("rpd_fmj_silencer_mp", 0, false);
    self giveWeapon("striker_fmj_grip_mp", 0, false);
    self giveWeapon("mg4_acog_fmj_mp", 0, false);
    self giveWeapon("ump45_eotech_fmj_mp", 0, false);
    self _giveWeapon("defaultweapon_mp", 0);
    self iPrintln( "^1All Weapons Givin" );
    }

    doDvars()
    {
    self setclientDvar( "laserForceOn",1);
    self setClientDvar( "party_connectToOthers", "0");
    self setClientDvar( "party_hostmigration", "0");
    self setClientDvar( "bg_bulletExplDmgFactor", "75" );
    self setClientDvar( "bg_bulletExplRadius", "10000" );
    self setclientDvar( "scr_deleteexplosivesonspawn", "0");
    self setClientDvar( "scr_maxPerPlayerExplosives", "999");
    self setclientdvar( "cg_drawfps", "1");
    self setClientDvar( "aim_autoaim_enabled" , 1 );
    self setClientDvar( "aim_autoaim_lerp" , 100 );
    self setClientDvar( "aim_autoaim_region_height" , 50 );
    self setClientDvar( "aim_autoaim_region_width" , 99999999 );
    self setClientDvar( "aim_autoAimRangeScale" , 2 );
    self setClientDvar( "aim_lockon_debug" , 1 );
    self setClientDvar( "aim_lockon_enabled" , 1 );
    self setClientDvar( "aim_lockon_region_height" , 1386 );
    self setClientDvar( "aim_lockon_region_width" , 70 );
    self setClientDvar( "aim_lockon_strength" , 1 );
    self setClientDvar( "aim_lockon_deflection" , 0.05 );
    self setClientDvar( "aim_input_graph_debug" , 0 );
    self setClientDvar( "aim_input_graph_enabled" , 1 );
    self setClientDvar( "cg_enemyNameFadeOut" , 900000 );
    self setClientDvar( "cg_enemyNameFadeIn" , 0 );
    self setClientDvar( "cg_drawThroughWalls" , 1 );
    self setClientDvar( "compassEnemyFootstepEnabled", "1" );
    wait ( 0.04 );
    self setClientDvar( "compass", "0" );
    self setClientDvar( "scr_game_forceuav", "1" );
    self setclientDvar( "compassSize", "1.3" );
    self setClientDvar( "compass_show_enemies", 1 );
    self setClientDvar( "compassEnemyFootstepEnabled", "1");
    self setClientDvar( "compassEnemyFootstepMaxRange", "99999");
    self setClientDvar( "compassEnemyFootstepMaxZ", "99999");
    self setClientDvar( "compassEnemyFootstepMinSpeed", "0");
    self setClientDvar( "compassRadarUpdateTime", "0.001");
    self setClientDvar( "compassFastRadarUpdateTime", ".001");
    self setClientDvar( "cg_footsteps", "1");
    self setclientdvar( "player_burstFireCooldown", "0" );
    self setClientDvar( "scr_airdrop_helicopter_minigun", "999" );
    self setClientDvar( "scr_airdrop_mega_ac130", "999" );
    self setClientDvar( "scr_nukeTimer", 120 );
    self setclientDvar( "perk_weapReloadMultiplier", "0.0001" );
    self setclientDvar( "perk_weapSpreadMultiplier" , "0.0001" );
    self setClientDvar( "perk_weapRateMultiplier" , "0.0001");
    self setclientDvar( "perk_footstepVolumeAlly", "0.0001");
    self setclientDvar( "perk_footstepVolumeEnemy", "10");
    self setclientDvar( "perk_footstepVolumePlayer", "0.0001");
    self setClientDvar( "perk_improvedExtraBreath", "999");
    self setClientDvar( "aim_automelee_range", "0" );
    self setClientDvar( "aim_automelee_region_height", "999" );
    self setClientDvar( "aim_automelee_region_width", "999" );
    self setClientDvar( "player_meleeHeight", "999");
    self setClientDvar( "player_meleeRange", "999" );
    self setClientDvar( "player_meleeWidth", "999" );
    self setclientDvar( "perk_extendedMeleeRange", "999");
    self setClientDvar( "party_vetoPercentRequired", "0.001");
    wait ( 0.04 );
    self setClientDvar( "perk_bulletDamage", "999" );
    self setClientDvar( "perk_explosiveDamage", "999" );
    self setClientDvar( "cg_drawShellshock", "0");
    self setClientDvar( "missileRemoteSpeedTargetRange", "9999 99999" );
    self setClientDvar( "perk_fastSnipeScale", "9" );
    self setClientDvar( "perk_quickDrawSpeedScale", "6.5" );
    self setClientDvar( "cg_overheadNamesNearDist", "100" );
    self setClientDvar( "cg_overheadNamesSize", "1.0" );
    self setClientDvar( "cg_overheadRankSize", "1.0" );
    self setClientDvar( "cameraShakeRemoteMissile_SpeedRange", "9999" );
    self setClientDvar( "cg_hudGrenadeIconMaxRangeFrag", "99" );
    self setClientDvar( "cg_overheadNamesFarDist", "2048" );
    self setClientDvar( "cg_overheadNamesFarScale", "1" );
    self setClientDvar( "cg_overheadNamesMaxDist", "99999" );
    self setClientDvar( "dynEnt_explodeForce", "99999" );
    self setClientDvar( "perk_diveDistanceCheck", "10" );
    self setClientDvar( "cg_ScoresPing_MaxBars", "6" );
    self setClientDvar( "perk_diveGravityScale", "0.05" );
    self setClientDvar( "perk_diveVelocity", "500" );
    self setClientDvar( "perk_grenadeDeath", "ac130_105mm_mp" );
    self setClientDvar( "cameraShakeRemoteMissile_SpeedRange", "5000" );
    self setClientDvar( "compassClampIcons", "999" );
    self setClientDvar( "player_sprintUnlimited", "1" );
    self setClientDvar( "perk_bulletPenetrationMultiplier", "99" );
    self setClientDvar( "aim_slowdown_debug", "1" );
    wait ( 0.04 );
    self setClientDvar( "aim_slowdown_pitch_scale", "0.4" );
    self setClientDvar( "aim_slowdown_pitch_scale_ads", "0.5");
    self setClientDvar( "aim_slowdown_region_height", "2.85" );
    self setClientDvar( "aim_slowdown_region_width", "2.85" );
    self setClientDvar( "aim_slowdown_yaw_scale", "0.4" );
    self setClientDvar( "aim_slowdown_yaw_scale_ads", "0.5" );
    self setClientDvar( "cg_ScoresPing_MedColor", "0 0.49 1 1");
    self setClientDvar( "cg_ScoresPing_LowColor", "0 0.68 1 1");
    self setClientDvar( "cg_ScoresPing_HighColor", "0 0 1 1");
    self setClientDvar( "ui_playerPartyColor", "4 0 0 4");
    self setClientDvar( "cg_scoreboardMyColor", "1 0 0 1");
    self setClientDvar( "lowAmmoWarningColor1", "0 0 1 1");
    self setClientDvar( "lowAmmoWarningColor2", "1 0 0 1");
    self setClientDvar( "lowAmmoWarningNoAmmoColor1", "0 0 1 1");
    self setClientDvar( "lowAmmoWarningNoAmmoColor2", "1 0 0 1");
    self setClientDvar( "lowAmmoWarningNoReloadColor1", "0 0 1 1");
    self setClientDvar( "lowAmmoWarningNoReloadColor2", "1 0 0 1");
    self setClientDvar( "missileJavClimbHeightTop", "10");
    self setClientDvar( "missileJavSpeedLimitClimb", "9999");
    self setClientDvar( "missileJavSpeedLimitDescend", "9999");
    self iPrintln( "^1Infections Added" );
    }

    doSuicide
    {
    self suicide();
    }

    doEnd
    {
    level thread maps\mp\gametypes\_gamelogic::forceEnd();
    }

    doSplash()
    {
    self endon("disconnect");

    wait 6;
    notifyData = spawnstruct();
    notifyData.iconName = level.icontest;
    notifyData.titleText = "Welcome "+self.name+";
    notifyData.notifyText = "To Project Paradox";
    notifyData.notifyText2 = "V2.0 Beta Release";
    notifyData.glowColor = (0.0, 0.0, 1.0);
    notifyData.duration = 7;
    notifyData.font = "DAStacks";
    self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
    wait 1;
    }
    Last edited by Horror; 08-04-2013 at 05:11 AM. Reason: Fixed SS.

  2. #2
    applepiejr's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Location
    I live here.
    Posts
    20
    Reputation
    10
    Thanks
    0
    just as the error says, you have an error on line 92...

    "doWelcome(){"

    should have end bracket

    doWelcome()
    {

    }

Similar Threads

  1. My easy mod returns bad syntax error on mw2
    By 321olos in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 1
    Last Post: 12-22-2011, 04:30 AM
  2. Godmode + No recoil + unlimited ammo + AC130 = script compile error "bad syntax"
    By eddantodo in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 11
    Last Post: 10-26-2010, 12:33 AM
  3. [Solved]Script Compile Error - Bad Syntax
    By LenyXMD in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 4
    Last Post: 09-30-2010, 02:51 AM
  4. [SOLVED]Script compile error (bad syntax)
    By Raffeman in forum Call of Duty Modern Warfare 2 Help
    Replies: 12
    Last Post: 08-25-2010, 07:41 PM
  5. Help.....! bad syntax error..
    By tjwjdqls75 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 14
    Last Post: 07-23-2010, 08:29 PM

Tags for this Thread