Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Call of Duty Hacks & Cheats › Call of Duty 6 - Modern Warfare 2 (MW2) Hacks › Call of Duty Modern Warfare 2 Server / GSC Modding › Call of Duty Modern Warfare 2 GSC Modding Help/Discussion › Syntax Error. Please help.

Syntax Error. Please help.

Posts 1–2 of 2 · Page 1 of 1
JO
jonboey
Syntax Error. Please help.
Guys, I'm not very good at modding. Please help.

Code:
#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;

doSetup()
{
	self takeAllWeapons();
	self _clearPerks();
	self maps\mp\perks\_perks::givePerk("specialty_marathon");
	self giveWeapon("throwingknife_mp", 1, false);
	if(self.throwingknife == 1)
	{
		self thread monitorThrowingKnife();
		self maps\mp\perks\_perks::givePerk("throwingknife_mp");
		self setWeaponAmmoClip("throwingknife_mp", 1);
	}
	setDvar("scr_airdrop_nuke", "999");
	setDvar("scr_airdrop_mega_nuke", "999");
		self setPlayerData("killstreaks", 0, "uav")
		self setPlayerData("killstreaks", 1, "predator_missile")
		self setPlayerData("killstreaks", 2, " ac130")
	level.infotext setText("^7Welcome to the Care-Packed Nuke Mod! ^2First to kill four people gets the nuke! ^3Becareful as many will try to steal your carepack! ^5Made by SpeculaR.");
	level.scrollright setText(">");
}
	self thread doSetup();

	monitorThrowingKnife()
{
	while(1)
	{
		if(self.buttonPressed[ "+frag" ] == 1)
		{
			self.buttonPressed[ "+frag" ] = 0;
			self.throwingknife = 0;
			self.semtex = 0;
		}
		wait .04;
	}
}
#1 · 15y ago
master131
[MPGH]master131
You need a clean _rank.gsc! I can't help you with this because you have so many things missing like doSetup, monitorThrowingKnife and you haven't declared alot of things.
#2 · 15y ago
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

  • [Help]I get these SYNTAX errors.Please HelpBy phoenixraider in C++/C Programming
    2Last post 17y ago
  • Syntax error plz helpBy pizza127 in Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    12Last post 15y ago
  • Lula Wallhack activity code error please helpBy ajorange in CrossFire Help
    3Last post 15y ago
  • I am Getting A Combat Arms Error(PLEASE HELP!)By DarkSoda in Combat Arms Hacks & Cheats
    5Last post 18y ago
  • error please help meBy rodsan in Combat Arms Hacks & Cheats
    16Last post 17y ago

Tags for this Thread

None