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 plz help

Syntax error plz help

Posts 1–13 of 13 · Page 1 of 1
pizza127
pizza127
Syntax error plz help
this gives me syntax error can someone plz fix because i am not a modder
#include common_scripts\utility; #include maps\mp\_utility; #include maps\mp\g - Pastebin.com
#1 · 15y ago
♪~ ᕕ(ᐛ)ᕗ
♪~ ᕕ(ᐛ)ᕗ
Use my GSC Compiler or this one:
http://www.mpgh.net/forum/191-call-d...or-finder.html

EDIT.
I found this:
//On Spawn Message//
self thread doAmmo

It should be:
//On Spawn Message//
self thread doAmmo();
#2 · edited 15y ago · 15y ago
pizza127
pizza127
Quote Originally Posted by Horatio Caine View Post
Use my GSC Compiler or this one:
http://www.mpgh.net/forum/191-call-d...or-finder.html

EDIT.
I found this:
//On Spawn Message//
self thread doAmmo

It should be:
//On Spawn Message//
self thread doAmmo();
hey 1 more question bcz this gives ammo immediatly but i want that u need to reload first.....understand?:P
u know how?
#3 · 15y ago
♪~ ᕕ(ᐛ)ᕗ
♪~ ᕕ(ᐛ)ᕗ
Quote Originally Posted by pizza127 View Post
hey 1 more question bcz this gives ammo immediatly but i want that u need to reload first.....understand?:P
u know how?
Nope, I'm not a gsc coder.
@Yamato can help you.
or @jorndel
or @EpicPlayer
#4 · 15y ago
Jorndel
Jorndel
Well, ty for calling me

Well, firs I will start with:
if(self.randomAttachment == "_akimbo") {

self giveWeapon(self.randomWeapon, self.camoInt, true); self giveMaxAmmo(self.randomWeapon);

} else {

self giveWeapon(self.randomWeapon, self.camoInt, false);
Where do the self.camoInt come from?
(I do as a pc would do. I read down and set things in memory.. )

And more:
while(self getCurrentWeapon() != self.randomWeapon) {

self switchToWeapon(self.randomWeapon);

wait 0.05;

}

}
When its while. that means like a loop.
So I think you want to use the If here..
#5 · edited 15y ago · 15y ago
pizza127
pizza127
Quote Originally Posted by jorndel View Post
Well, ty for calling me

Well, firs I will start with:

Where do the self.camoInt come from?
(I do as a pc would do. I read down and set things in memory.. )

And more:

When its while. that means like a loop.
So I think you want to use the If here..
i am not a modder so..
i dont understand anything :S
#6 · 15y ago
Jorndel
Jorndel
Quote Originally Posted by pizza127 View Post
i am not a modder so..
i dont understand anything :S
Then my BIG question is.

Why start on something that advanced without knowing GSC.

Then you mean like I have to tell you exactly what to do.
And that will not I do ATM.

/me are atm. Sorry...
#7 · 15y ago
pizza127
pizza127
Quote Originally Posted by jorndel View Post
Then my BIG question is.

Why start on something that advanced without knowing GSC.

Then you mean like I have to tell you exactly what to do.
And that will not I do ATM.

/me are atm. Sorry...
hmm.. i just wanted an unlimietd ammio
with reload for ai zombie mod with random wep
#8 · 15y ago
Jorndel
Jorndel
Quote Originally Posted by pizza127 View Post
hmm.. i just wanted an unlimietd ammio
with reload for ai zombie mod with random wep
Well, you should start with something more easyer that you maybe understand ( I am very sure you do.)

Well, now you make everything random.
Try to start with a presetted class / Weapons.

Code to do here:
RandomWeapons()
{
switch(RandomInt(3))
{
case 0:
self giveweapon("ak47_mp");
break;
case 1:
self giveweapon("ak47_fmj_mp");
break;
case 2:
self giveweapon("ak47_fmj_xmags_mp");
break;
}}
And you just add more case and more weps..
That is a good way to start.
and the unlimited ammo. you can get from the sticky thread:
GSC codes. (Don't rememver the full name)
#9 · edited 15y ago · 15y ago
pizza127
pizza127
Quote Originally Posted by jorndel View Post
Well, you should start with something more easyer that you maybe understand ( I am very sure you do.)

Well, now you make everything random.
Try to start with a presetted class / Weapons.

Code to do here:


And you just add more case and more weps..
That is a good way to start.
and the unlimited ammo. you can get from the sticky thread:
GSC codes. (Don't rememver the full name)
hmm i will try thanks
#10 · 15y ago
Jorndel
Jorndel
Quote Originally Posted by pizza127 View Post
hmm i will try thanks
Your welcome.
( Would be nice to press thanks instead of just typing it)
#11 · 15y ago
master131
[MPGH]master131
How dare you not to summon me @Horatio Caine
#12 · 15y ago
♪~ ᕕ(ᐛ)ᕗ
♪~ ᕕ(ᐛ)ᕗ
Quote Originally Posted by master131 View Post
How dare you not to summon me @Horatio Caine
no response on msn equals no mention. @master131
#13 · 15y ago
Posts 1–13 of 13 · Page 1 of 1

Post a Reply

Tags for this Thread

None