Compile Error(FacePalm)

Posts 1–7 of 7 · Page 1 of 1
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);
}
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.
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.
The error is an unknown function or bad syntax?

Pasting that snippet into my own results in NO errors.
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
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
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?
Posts 1–7 of 7 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Need help?