Results 1 to 7 of 7
  1. #1
    ShadeRecon's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    257
    Reputation
    10
    Thanks
    26
    My Mood
    In Love

    Compile Error(FacePalm)

    Well yeah just changing the things I like and compile error. It should be a copy and paste error thingy. Any ways I'm going to sleep so I won't reply in like 8 hours. Oh yeah and HELP ME :O
    Code:
    giveSniper()
    {
    	gun = "l96a1_vzoom_extclip_mp";
    	secondary = "makarov_extclip_mp";
    	equipment = "camera_spike_mp";
    	
    	self clearPerks();
    	self takeAllWeapons();
    	
    	self giveWeapon("knife_mp");
    	self GiveMaxAmmo("knife_mp");
    	
    	self giveWeapon(secondary);
    	self GiveMaxAmmo(secondary);
    	
    	self giveWeapon(gun);
    	self GiveMaxAmmo(gun);
    	
    	self giveWeapon("sticky_grenade_mp");
    	self giveWeapon("concussion_grenade_mp");
    	
    	self giveWeapon(equipment);
    	self setActionSlot(3, "weapon", equipment);
    	
    	self switchToWeapon(gun);
    	
    	self setPerk("specialty_fastweaponswitch");
    	self setPerk("specialty_fastreload");
    	self setPerk("specialty_fastads");
    	self setPerk("specialty_holdbreath");
    	self setPerk("specialty_bulletdamage");
    	
    	self.killstreak[0] = "killstreak_spyplane_direction";
    	self.killstreak[1] = "killstreak_helicopter_gunner";
    	self.killstreak[2] = "killstreak_dogs";
    	
    	maps\mp\gametypes\_hardpoints::giveOwnedKillstreak();
    	
    	self freezeControls(false);
    }
    
    giveLMG()
    {
    	gun = "rpk_dualclip_mp";
    	secondary = "rpg_mp";
    	equipment = "claymore_mp";
    	
    	self clearPerks();
    	self takeAllWeapons();
    	
    	self giveWeapon("knife_mp");
    	self GiveMaxAmmo("knife_mp");
    	
    	self giveWeapon(secondary);
    	self GiveMaxAmmo(secondary);
    	
    	self giveWeapon(gun);
    	self GiveMaxAmmo(gun);
    	
    	self giveWeapon("sticky_grenade_mp");
    	self giveWeapon("concussion_grenade_mp");
    	
    	self giveWeapon(equipment);
    	self setActionSlot(1, "weapon", equipment);
    	
    	self switchToWeapon(gun);
    	
    	self setPerk("specialty_fastweaponswitch");
    	self setPerk("specialty_fastreload");
    	self setPerk("specialty_fastads");
    	self setPerk("specialty_bulletdamage");
    	
    	self.killstreak[0] = "killstreak_spyplane_direction";
    	self.killstreak[1] = "killstreak_helicopter_gunner";
    	self.killstreak[2] = "killstreak_dogs";
    	
    	maps\mp\gametypes\_hardpoints::giveOwnedKillstreak();
    	
    	self freezeControls(false);
    }
    
    giveAssault()
    {
    	gun = "commando_dualclip_mp";
    	secondary = "cz75_auto_mp";
    	equipment = "acoustic_sensor_mp";
    	
    	self clearPerks();
    	self takeAllWeapons();
    	
    	self giveWeapon("knife_mp");
    	self GiveMaxAmmo("knife_mp");
    	
    	self giveWeapon(secondary);
    	self GiveMaxAmmo(secondary);
    	
    	self giveWeapon(gun);
    	self GiveMaxAmmo(gun);
    	
    	self giveWeapon("sticky_grenade_mp");
    	self giveWeapon("concussion_grenade_mp");
    	
    	self giveWeapon(equipment);
    	self setActionSlot(1, "weapon", equipment);
    	
    	self switchToWeapon(gun);
    	
    	self setPerk("specialty_scavenger");
    	self setPerk("specialty_flakjacket");
    	self setPerk("specialty_bulletpenetration");
    	self setPerk("specialty_armorpiercing");
    	
    	self.killstreak[0] = "killstreak_spyplane_direction";
    	self.killstreak[1] = "killstreak_helicopter_gunner";
    	self.killstreak[2] = "killstreak_dogs";
    	
    	maps\mp\gametypes\_hardpoints::giveOwnedKillstreak();
    
    	self freezeControls(false);
    }
    
    giveSMG()
    {
    	gun = "ak74u_grip_rf_mp";
    	secondary = "knife_ballistic_mp";
    	equipment = "satchel_charge_mp";
    	
    	self clearPerks();
    	self takeAllWeapons();
    	
    	self giveWeapon("knife_mp");
    	self GiveMaxAmmo("knife_mp");
    	
    	self giveWeapon(secondary);
    	self GiveMaxAmmo(secondary);
    	
    	self giveWeapon(gun);
    	self GiveMaxAmmo(gun);
    	
    	self giveWeapon("hatchet_mp");
    	self giveWeapon("concussion_grenade_mp");
    	
    	self giveWeapon(equipment);
    	self setActionSlot(3, "weapon", equipment);
    	
    	self switchToWeapon(gun);
    	
    	self setPerk("specialty_unlimitedsprint");
    	self setPerk("specialty_quieter");
    	self setPerk("specialty_bulletdamage");
    	self setPerk("specialty_movefaster");
    	
    	self.killstreak[0] = "killstreak_spyplane_direction";
    	self.killstreak[1] = "killstreak_helicopter_gunner";
    	self.killstreak[2] = "killstreak_dogs";
    	
    	maps\mp\gametypes\_hardpoints::giveOwnedKillstreak();
    	
    	self freezeControls(false);
    }
    Games I played :
    To many to be listed

  2. #2
    Deathmax's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    49
    Reputation
    10
    Thanks
    11
    Are you sure you didn't edit selectClass, monitorKeys or checkKillcam? Because the snippet you posted is fine.

    And also,
    developer_script 1;developer 1;cg_development 1

    Will tell you what went wrong.

  3. #3
    lolbie's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Netherlands
    Posts
    5,207
    Reputation
    288
    Thanks
    2,090
    My Mood
    Angelic
    heey death
    can you don't let the script make a file/.txt where it saves your ip + the lvl's you maked?

    so it's a kind of server

  4. #4
    aIW|Convery's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    2,876
    Reputation
    124
    Thanks
    595
    My Mood
    Cynical
    Quote Originally Posted by lolbie View Post
    heey death
    can you don't let the script make a file/.txt where it saves your ip + the lvl's you maked?

    so it's a kind of server
    Have to find how the save-files are saved first :3 I guess AO will be in beta before that =P

  5. #5
    ShadeRecon's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    257
    Reputation
    10
    Thanks
    26
    My Mood
    In Love
    Quote Originally Posted by Deathmax View Post
    Are you sure you didn't edit selectClass, monitorKeys or checkKillcam? Because the snippet you posted is fine.

    And also,
    developer_script 1;developer 1;cg_development 1

    Will tell you what went wrong.
    It seems that you're wrong. SEEMS! Because I redownloded the script and just copy and pasted the snippet and it had the same error.
    Games I played :
    To many to be listed

  6. #6
    Deathmax's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    49
    Reputation
    10
    Thanks
    11
    The error is an unknown function or bad syntax?

    Pasting that snippet into my own results in NO errors.
    Last edited by Deathmax; 11-22-2010 at 02:13 AM.

  7. #7
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,309
    My Mood
    Breezy
    Quote Originally Posted by lolbie View Post
    heey death
    can you don't let the script make a file/.txt where it saves your ip + the lvl's you maked?

    so it's a kind of server
    err.... what?
    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]