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 › [Solved]Script Compile Error - Bad Syntax

[Solved]Script Compile Error - Bad Syntax

Posts 1–5 of 5 · Page 1 of 1
LE
LenyXMD
[Solved]Script Compile Error - Bad Syntax
Hi everybody I'm trying new way to do my Mod but, I dont know where is Mistake

Code:
http://pastebin.com/mQV68VMX
Here is the Source. I know the problem is somewhere in the doStart() function but dont know where...
Can anyone help me? Thanks
#1 · edited 15y ago · 15y ago
CH
ch40s
1.
its not
Code:
doTier = +2
it's
Code:
doTiers += 2
(or if u meant a positve integer just doTiers = 2
2.
Code:
for(doTiers == 2)
is not a valid command,
i think what you mean is
Code:
if(doTiers == 2)
3.
it's not
Code:
"The Value is" +(doTiers)+ ", It's Bad"
but
Code:
"The Value is" +doTiers+ ", It's Bad"
4.
Code:
for(doTiers==3)(which sould be if(doTiers == 3) )
doesn't make sense, since doTiers never gets 3 ^^
5.
in your doStart(), if you want to take all weapons and perks, you have to add
Code:
self _clearperks();
greetz
#2 · edited 15y ago · 15y ago
LE
LenyXMD
Can I also ask, why the doStart is not started?
I normaly have it LEVEL THREADed...
Anyone know?
Code:
init()

{

 

        level thread onPlayerConnect();

        level thread doStart();

       

}
#3 · edited 15y ago · 15y ago
Orichumaru
Orichumaru
haha Place the thread dostart (); in the Thread Onplayerspawned

Code:
onPlayerSpawned()
{
self endon( "disconnect" );     
for(;;)
        {
			self waittill( "spawned_player" );
			self thread doStart();
			self thread maps\mp\gametypes\_hud_message::hintMessage("^7All ^2Hail ^3Lelouch");
like this
#4 · 15y ago
Blubb1337
Blubb1337
/marked as solved
#5 · 15y ago
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

  • [SOLVED]Script compile error (bad syntax)By Raffeman in Call of Duty Modern Warfare 2 Help
    12Last post 16y ago
  • Godmode + No recoil + unlimited ammo + AC130 = script compile error "bad syntax"By eddantodo in Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    11Last post 15y ago
  • [SOLVED]script Compile error :(By bozzabowman in Call of Duty Modern Warfare 2 Help
    3Last post 15y ago
  • Server script compile errorBy dylvo in Call of Duty Black Ops Help
    3Last post 15y ago
  • Script compile error - Unknown function (check console for details)By Chaojon in Call of Duty Modern Warfare 2 Help
    40Last post 16y ago

Tags for this Thread

None