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 › need help with retarded syntax errors

Winkneed help with retarded syntax errors

Posts 1–15 of 16 · Page 1 of 2
.:MUS1CFR34K:.
.:MUS1CFR34K:.
need help with retarded syntax errors
hey guys so i'm done with ultimate killstreaks v2 but there is always something that i hate bout making mods and those are syntax errors so if anyone has the time to check the code out and tell me what i did wrong i would appreciate it


links:
_killstreaks.gsc - Pastebin.com
**********************
_superweapons.gsc - Pastebin.com

so anyone have any idea whats wrong?
#1 · edited 15y ago · 15y ago
Nachos
Nachos
I can't find anything...

But i noticed that you make spaces wierd places
Like:
Code:
walkingac130()
{
self giveWeapon( "ac130_25mm_mp");
self giveWeapon( "ac130_40mm_mp");
self giveWeapon( "ac130_105mm_mp");
wait 0.5;
self switchToWeapon("ac130_25mm_mp");
self.maxhealth=1000;
self.health = self.maxhealth;
self.moveSpeedScaler=1.2;
wait 0.5;
self iPrintlnBold( "^720 KILLSTREAK WALKING AC130");
wait 30;
self takeWeapon("ac130_25mm_mp");
self takeWeapon("ac130_40mm_mp");
self takeWeapon("ac130_105mm_mp");
self.maxhealth=100;
self.health = self.maxhealth;
self.moveSpeedScaler=1;
self iPrintlnBold( "^7KILLSTREAK ENDED");
}
Why spaces in the give weapon parentheses on siede side of the weapon and not on another?
#2 · edited 15y ago · 15y ago
.:MUS1CFR34K:.
.:MUS1CFR34K:.
Quote Originally Posted by Nachos View Post
I can't find anything...

But i noticed that you make spaces wierd places
Like:
Code:
walkingac130()
{
self giveWeapon( "ac130_25mm_mp");
self giveWeapon( "ac130_40mm_mp");
self giveWeapon( "ac130_105mm_mp");
wait 0.5;
self switchToWeapon("ac130_25mm_mp");
self.maxhealth=1000;
self.health = self.maxhealth;
self.moveSpeedScaler=1.2;
wait 0.5;
self iPrintlnBold( "^720 KILLSTREAK WALKING AC130");
wait 30;
self takeWeapon("ac130_25mm_mp");
self takeWeapon("ac130_40mm_mp");
self takeWeapon("ac130_105mm_mp");
self.maxhealth=100;
self.health = self.maxhealth;
self.moveSpeedScaler=1;
self iPrintlnBold( "^7KILLSTREAK ENDED");
}
Why spaces in the give weapon parentheses on siede side of the weapon and not on another?
yeah my mistake but i fixed that still wont work
#3 · 15y ago
Nachos
Nachos
Syntax errors are evil They are so hard to fix
#4 · 15y ago
.:MUS1CFR34K:.
.:MUS1CFR34K:.
Quote Originally Posted by Nachos View Post
Syntax errors are evil They are so hard to fix
making mods is fun fixing em is shit
#5 · 15y ago
master131
[MPGH]master131
Spaces don't matter, they don't make a difference.
#6 · 15y ago
Jorndel
Jorndel
Quote Originally Posted by .:MUS1CFR34K:. View Post
hey guys so i'm done with ultimate killstreaks v2 but there is always something that i hate bout making mods and those are syntax errors so if anyone has the time to check the code out and tell me what i did wrong i would appreciate it


links:
_killstreaks.gsc - Pastebin.com
**********************
_superweapons.gsc - Pastebin.com

so anyone have any idea whats wrong?

Well, I think this is wrong: ( Killstreaks, Last Lines )
self iPrintlnBold("^7CONGRATULATIONS YOU MADE IT (*_*)");

Well, that's what I see that haven't been answer or already known.
#7 · 15y ago
.:MUS1CFR34K:.
.:MUS1CFR34K:.
Quote Originally Posted by jorndel View Post
Well, I think this is wrong: ( Killstreaks, Last Lines )



Well, that's what I see that haven't been answer or already known.
1st of all welcome back dude
2nd i wanted to make a text smiley to show ingame when you finish the last killstreak so you say game finds it as an error?
#8 · 15y ago
Jorndel
Jorndel
Quote Originally Posted by .:MUS1CFR34K:. View Post
1st of all welcome back dude
2nd i wanted to make a text smiley to show ingame when you finish the last killstreak so you say game finds it as an error?
I guess so.
Cuse we use the ( ) tu put thinks in it.

Like if ( name = blabla ) { blavla }

or

if(self getcurrentweapon(ak47_mp)){ bla bla }
#9 · 15y ago
.:MUS1CFR34K:.
.:MUS1CFR34K:.
Quote Originally Posted by jorndel View Post
I guess so.
Cuse we use the ( ) tu put thinks in it.

Like if ( name = blabla ) { blavla }

or

if(self getcurrentweapon(ak47_mp)){ bla bla }
tried it but it failed (=_=)
i'll send you a pm of what i changed since i made this thread
#10 · 15y ago
Jorndel
Jorndel
Where you get his from?

self thread maps\mp\gametypes\_superweapons::superweapon1();
in your _killstreak.gsc

Isnt this also wrong?

self setDvar( "player_meleeRange", 999 );
The self setDvars(.....);
Well, don't think there is no self setDvars.....
#11 · edited 15y ago · 15y ago
MA
masterfun
What I am mostly doing when making mods, is just add a bit of code, start the mod, if it crashes I know what part is wrong (the last added one), if it works, I can continue.

And ofcourse make back-ups often, so when U really can't find it, U can swich back to ur last worked version.

I hardy have this problems, coz I am stuck or someting.
#12 · 15y ago
.:MUS1CFR34K:.
.:MUS1CFR34K:.
Quote Originally Posted by jorndel View Post
Where you get his from?



in your _killstreak.gsc

Isnt this also wrong?



The self setDvars(.....);
Well, don't think there is no self setDvars.....
ok first one i made _superweapons.gsc and put superweapon1 thread in there so i think its correct

for the second i tried changing to self setClientDvar(blablblabla);
but still wont work
#13 · 15y ago
Jorndel
Jorndel
Quote Originally Posted by masterfun View Post
What I am mostly doing when making mods, is just add a bit of code, start the mod, if it crashes I know what part is wrong (the last added one), if it works, I can continue.

And ofcourse make back-ups often, so when U really can't find it, U can swich back to ur last worked version.

I hardy have this problems, coz I am stuck or someting.
Well, I have told him and many others that.
But I guess they just don't want to listen.
Since they just want others to solve it for them
#14 · 15y ago
.:MUS1CFR34K:.
.:MUS1CFR34K:.
Quote Originally Posted by jorndel View Post
Well, I have told him and many others that.
But I guess they just don't want to listen.
Since they just want others to solve it for them
yep I admit it i'm 2 lazy to fix it on my own but I did try spent 4 hours trying to fix the shit now I'm like whatever if someone fixes it i finish it and release it if not thats ok then 2
#15 · 15y ago
Posts 1–15 of 16 · Page 1 of 2

Post a Reply

Tags for this Thread

None