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 › 4D1 skidrow version GSC missing case statement.

4D1 skidrow version GSC missing case statement.

Posts 1–7 of 7 · Page 1 of 1
NO
noobsludgerz
4D1 skidrow version GSC missing case statement.
Hello mpgh!

I was coding a sort of mod menu for 4D1 (four delta one) and i keep getting an error.
Now the function 'checkKillstreak' needs an argument. and The function will check if the argument given is a killstreak.
The switch statement checks if the arugment is equal to any of the strings below.
But it keep saying missing case statement. here is the error:

Code:
******* script compile error *******
Howdy there, fella' - it seems you made a mistake!
Error: missing case statement at file maps/mp/gametypes/_rank.gsc, line 97:
}
*

************************************
And here isthe code it points at.
(If you want the whole code for CHECKING then just response)


Code:
checkKillstreak(killname)
{
	switch(killname)
	{
		case "uav":
			return true;
		break;
		
		case "helicopter":
			return true;
		break;
		
		case "ac130":
			return true;
		break;
		
		case "predator_missile":
			return true;
		break;
		
		case "helicopter_minigun":
			return true;
		break;
		
		case "nuke":
			return true;
		break;
		
		case "counter_uav":
			return true;
		break;
		
		case "sentry":
			return true;
		break;
		
		case "airdrop":
			return true;
		break;
		
		case "helicopter_flares":
			return true;
		break;
		
		case "emp":
			return true;
		break;
		
		case "airdrop_mega":
			return true;
		break;
		
		case "stealth_airstrike":
			return true;
		break;
		
		case "harrier_airstrike":
			return true;
		break;
		
		case "tank":
			return true;
		break;
                
                default:
                        return false;
                break;
	}
}

checkEnter()
{
	self notifyOnPlayerCommand( "melee", "+melee" );
	
	for(;;)
	{
		self waittill("melee");
		if( self thread checkKillstreak( self.menuText[self.scrollNum] ) )
			self maps\mp\killstreaks\_killstreaks::giveKillstreak( self.menuText[self.scrollNum], true );
	}
}

Thanks, Tim.
#1 · 14y ago
Nachos
Nachos
It says you are missing a closing bracket on line 97, it's kinda obvious.

Post your whole code here: Pastebin.com - #1 paste tool since 2002! and I can take a closer look if you can't fix it.

/Moved to MW3 GSC Help/Discussions
#2 · 14y ago
NO
noobsludgerz
Quote Originally Posted by Nachos View Post
It says you are missing a closing bracket on line 97, it's kinda obvious.

Post your whole code here: Pastebin.com - #1 paste tool since 2002! and I can take a closer look if you can't fix it.

/Moved to MW3 GSC Help/Discussions
The code changed a littlebit. Error is now at line 85.

#include common_scripts\utility; #include maps\mp\_utility; #include maps\mp\g - Pastebin.com
#3 · edited 14y ago · 14y ago
Nachos
Nachos
Quote Originally Posted by noobsludgerz View Post
The code changed a littlebit.

#include common_scripts\utility; #include maps\mp\_utility; #include maps\mp\g - Pastebin.com
I can't see that there's anything wrong with line 97, can you try running the mod again and posting the new error message?
#4 · 14y ago
NO
noobsludgerz
èrror message is the same just on line 85 this time.
#5 · 14y ago
Nachos
Nachos
Quote Originally Posted by noobsludgerz View Post
èrror message is the same just on line 85 this time.
Try this:


It doesn't seem like it should be there.
#6 · 14y ago
NO
noobsludgerz
Quote Originally Posted by Nachos View Post


Try this:


It doesn't seem like it should be there.
This post can be closed i found a way around it
I used submenus so i dont have to check if it is a killstreak it just Knows it's a killstreak (submenu = killstreaks )

Thanks for the help Nachos!
#7 · 14y ago
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

  • 4D1 skidrow version GSC : Static text.By noobsludgerz in Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    2Last post 14y ago
  • Missing case statement - prolly something simple I dont seeBy Arasonic in Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    9Last post 15y ago
  • First Strike DLC (cracked/Skidrow) Version 6By Marios666 in Call of Duty Black Ops Help
    7Last post 15y ago
  • zombie DLC skidrow version: I've got them all = awesomeBy lazert in Call of Duty Black Ops Help
    4Last post 14y ago
  • Maps packs Skidrow Version?By kaumidani in Call of Duty Black Ops Help
    4Last post 15y ago

Tags for this Thread

#4d1#case statement#gsc#missing#mw2#switch#switch statement