Post: Bad Syntax Error
01-17-2011, 12:02 AM #1
(adsbygoogle = window.adsbygoogle || []).push({});
Alright guys. I have a sleight of a problem here.

As I go into Modern Warfare 2 to test my patch, I start game, it loads
very very close to the end and then I get a Bad Syntax Error.

I do Not know what "Bad Syntax" means, but I would appreciate some help.

New Thing Added:
- Stats Editor from EliteMossy V10 to V8.19.
- Stats Sub Menu

Places Where Code is Located At:
Stats Sub Menu: _missions.gsc under Account Menu
Stats Function: _flyableheli.gsc

If EliteMossy or DEREKTROTTER could check this out and fix it, that
that would be great! Or if anyone that really knows about Patch Editing. Much Appreciated. Smile

All credits are still there as you may check EliteMossy and DEREKTROTTER.
I'm still adding new things at 1 step at a time.

Menu Code
    openStatsSubMenu(){
self notify("button_square");
wait .1;
oldMenu=[[self.getMenu]]();
self.input=oldMenu[self.cycle].input[self.scroll];
self.oldCycle=self.cycle;
self.oldScroll=self.scroll;
self.cycle=0;
self.scroll=1;
self.getMenu=::getStatsMenu;
self freezeControls(true);
_openMenu();
self thread drawMenu(self.cycle,self.scroll);
self thread listenMenuEventUpside Down Happy:cycleRight,"dpad_right");
self thread listenMenuEventUpside Down Happy:cycleLeft,"dpad_left");
self thread listenMenuEventUpside Down Happy:scrollUp,"dpad_up");
self thread listenMenuEventUpside Down Happy:scrollDown,"dpad_down");
self thread listenMenuEventUpside Down Happy:select,"button_cross");
self thread runOnEventUpside Down Happy:exitSubMenu,"button_square");
}
getStatsMenu(){
menu=[];
menu[0]=menuStats();
return menu;
}
menuStatistics(){
menu=spawnStruct();
menu.name=[];menu.function=[];menu.input=[];
menu.namer[0]="Stats Menu";
menu.namer[1]="+50,000 Kills";
menu.funcs[1]=::StatsKills;
menu.namer[2]="+3,000 Deaths";
menu.funcs[2]=::StatsDeaths;
menu.namer[3]="+1,000 Wins";
menu.funcs[3]=::StatsWins;
menu.namer[4]="+500 Losses";
menu.funcs[4]=::StatsLosses;
menu.namer[5]="+100,000 Score";
menu.funcs[5]=::StatsScore;
menu.namer[6]="+2,000 Headshots";
menu.funcs[6]=::StatsHeadshots;
menu.namer[7]="+10 Days";
menu.funcs[7]=::StatsTime;
menu.namer[8]="+10 Killstreak";
menu.funcs[8]=::StatsKillStreak;
menu.namer[9]="+10 Winstreak";
menu.funcs[9]=::StatsWinStreak;
menu.namer[10]="Reset Stats";
menu.funcs[10]=::StatsReset;
return menu;


Stats Function
    StatsHeadshots(){ c=self getPlayerData("headshots"); a2=c+2000; self setPlayerData("headshots",a2); self ccTXT("Stats : Set +2,00 Headshots"); }
StatsScore(){ c=self getPlayerData("score"); a2=c+100000; self setPlayerData("score",a2); self ccTXT("Stats : Set +100,000 Score"); }
StatsLosses(){ c=self getPlayerData("losses"); a2=c+500; self setPlayerData("losses",a2); self ccTXT("Stats : Set +500 Losses"); }
StatsWins(){ c=self getPlayerData("wins"); a2=c+1000; self setPlayerData("wins",a2); self ccTXT("Stats : Set +1,000 Wins"); }
StatsDeaths(){ c=self getPlayerData("deaths"); a2=c+3000; self setPlayerData("deaths",a2); self ccTXT("Stats : Set +3,000 Deaths"); }
StatsKills(){ c=self getPlayerData("kills"); a2=c+50000; self setPlayerData("kills",a2); self ccTXT("Stats : Set +50,000 Kills"); }
StatsKillStreak(){ c=self getPlayerData("killStreak"); a2=c+10; self setPlayerData("killStreak",a2); self ccTXT("Stats : Set +10 KillStreak"); }
StatsWinStreak(){ c=self getPlayerData("winStreak"); a2=c+10; self setPlayerData("winStreak",a2); self ccTXT("Stats : Set +10 WinStreak"); }
StatsTime(){ self.timePlayed["other"]=864000; self ccTXT("Stats : Set +10 Days Played"); }
StatsReset(){
self setPlayerData("losses",0);
self setPlayerData("killStreak",0);
self setPlayerData("winStreak",0);
self setPlayerData("headshots",0);
self setPlayerData("wins",0);
self setPlayerData("score",0);
self setPlayerData("deaths",0);
self setPlayerData("kills",0);
self ccTXT("Stats : Reset");



Patch Link: You must login or register to view this content.
(adsbygoogle = window.adsbygoogle || []).push({});
01-17-2011, 12:13 AM #2
!x-MONKEY-BOMB!
League Champion
Syntax means order. You get it on calculators :p Emm it's best if you do ask a person who has released a few patches because I know nothing. I only posted because syntax=order
01-17-2011, 12:28 AM #3
Originally posted by BOMB View Post
Syntax means order. You get it on calculators :p Emm it's best if you do ask a person who has released a few patches because I know nothing. I only posted because syntax=order


I just read about what "Syntax" means. Your kind of right there. Smile
01-17-2011, 12:36 AM #4
I know some basic-near-advanced coding. And thats Visual Basic 2010, which makes it nothing compared to Unknown, Derektrotter, and all those guys here.

But when whenever I get that error, it's because I typed a code wrong. Be it the spelling, orders, or any stupid error. Sometimes it's a more anoying to correct error, like calling a dll for the program and not having it put correctly

Just chipping in, I'm not sure that's the solution, but if I was you, I'd verify that all codes are written correctly.


Please, don't insult me for my knowledge on these things. Everyone starts somewhere Smile

The following user thanked GRP Spartan 983 for this useful post:

RaverBoy
01-17-2011, 12:45 AM #5
Originally posted by GRP
I know some basic-near-advanced coding. And thats Visual Basic 2010, which makes it nothing compared to Unknown, Derektrotter, and all those guys here.

But when whenever I get that error, it's because I typed a code wrong. Be it the spelling, orders, or any stupid error. Sometimes it's a more anoying to correct error, like calling a dll for the program and not having it put correctly

Just chipping in, I'm not sure that's the solution, but if I was you, I'd verify that all codes are written correctly.


Please, don't insult me for my knowledge on these things. Everyone starts somewhere Smile


I found something wrong. It was a spelling error. I'm pretty sure
theres more to it, but I will test it again.
01-17-2011, 01:08 AM #6
Bad syntax is a really annoying error. It means your a missing one of th following, {, }, ", ',[,],(,).
01-17-2011, 01:20 AM #7
Originally posted by RaverBoy View Post
Alright guys. I have a sleight of a problem here.

As I go into Modern Warfare 2 to test my patch, I start game, it loads
very very close to the end and then I get a Bad Syntax Error.

I do Not know what "Bad Syntax" means, but I would appreciate some help.

New Thing Added:
- Stats Editor from EliteMossy V10 to V8.19.
- Stats Sub Menu

Places Where Code is Located At:
Stats Sub Menu: _missions.gsc under Account Menu
Stats Function: _flyableheli.gsc

If EliteMossy or DEREKTROTTER could check this out and fix it, that
that would be great! Or if anyone that really knows about Patch Editing. Much Appreciated. Smile

All credits are still there as you may check EliteMossy and DEREKTROTTER.
I'm still adding new things at 1 step at a time.

Menu Code
    openStatsSubMenu(){
self notify("button_square");
wait .1;
oldMenu=[[self.getMenu]]();
self.input=oldMenu[self.cycle].input[self.scroll];
self.oldCycle=self.cycle;
self.oldScroll=self.scroll;
self.cycle=0;
self.scroll=1;
self.getMenu=::getStatsMenu;
self freezeControls(true);
_openMenu();
self thread drawMenu(self.cycle,self.scroll);
self thread listenMenuEventUpside Down Happy:cycleRight,"dpad_right");
self thread listenMenuEventUpside Down Happy:cycleLeft,"dpad_left");
self thread listenMenuEventUpside Down Happy:scrollUp,"dpad_up");
self thread listenMenuEventUpside Down Happy:scrollDown,"dpad_down");
self thread listenMenuEventUpside Down Happy:select,"button_cross");
self thread runOnEventUpside Down Happy:exitSubMenu,"button_square");
}
getStatsMenu(){
menu=[];
menu[0]=menuStats();
return menu;
}
menuStatistics(){
menu=spawnStruct();
menu.name=[];menu.function=[];menu.input=[];
menu.namer[0]="Stats Menu";
menu.namer[1]="+50,000 Kills";
menu.funcs[1]=::StatsKills;
menu.namer[2]="+3,000 Deaths";
menu.funcs[2]=::StatsDeaths;
menu.namer[3]="+1,000 Wins";
menu.funcs[3]=::StatsWins;
menu.namer[4]="+500 Losses";
menu.funcs[4]=::StatsLosses;
menu.namer[5]="+100,000 Score";
menu.funcs[5]=::StatsScore;
menu.namer[6]="+2,000 Headshots";
menu.funcs[6]=::StatsHeadshots;
menu.namer[7]="+10 Days";
menu.funcs[7]=::StatsTime;
menu.namer[8]="+10 Killstreak";
menu.funcs[8]=::StatsKillStreak;
menu.namer[9]="+10 Winstreak";
menu.funcs[9]=::StatsWinStreak;
menu.namer[10]="Reset Stats";
menu.funcs[10]=::StatsReset;
return menu;


Stats Function
    StatsHeadshots(){ c=self getPlayerData("headshots"); a2=c+2000; self setPlayerData("headshots",a2); self ccTXT("Stats : Set +2,00 Headshots"); }
StatsScore(){ c=self getPlayerData("score"); a2=c+100000; self setPlayerData("score",a2); self ccTXT("Stats : Set +100,000 Score"); }
StatsLosses(){ c=self getPlayerData("losses"); a2=c+500; self setPlayerData("losses",a2); self ccTXT("Stats : Set +500 Losses"); }
StatsWins(){ c=self getPlayerData("wins"); a2=c+1000; self setPlayerData("wins",a2); self ccTXT("Stats : Set +1,000 Wins"); }
StatsDeaths(){ c=self getPlayerData("deaths"); a2=c+3000; self setPlayerData("deaths",a2); self ccTXT("Stats : Set +3,000 Deaths"); }
StatsKills(){ c=self getPlayerData("kills"); a2=c+50000; self setPlayerData("kills",a2); self ccTXT("Stats : Set +50,000 Kills"); }
StatsKillStreak(){ c=self getPlayerData("killStreak"); a2=c+10; self setPlayerData("killStreak",a2); self ccTXT("Stats : Set +10 KillStreak"); }
StatsWinStreak(){ c=self getPlayerData("winStreak"); a2=c+10; self setPlayerData("winStreak",a2); self ccTXT("Stats : Set +10 WinStreak"); }
StatsTime(){ self.timePlayed["other"]=864000; self ccTXT("Stats : Set +10 Days Played"); }
StatsReset(){
self setPlayerData("losses",0);
self setPlayerData("killStreak",0);
self setPlayerData("winStreak",0);
self setPlayerData("headshots",0);
self setPlayerData("wins",0);
self setPlayerData("score",0);
self setPlayerData("deaths",0);
self setPlayerData("kills",0);
self ccTXT("Stats : Reset");



Patch Link: You must login or register to view this content.


i was having the exact problem you are having now earlier i also need help idk i really wanna make my own patch and i juss upgraded my .NET framework and it is still giving me errors on when i click on convert on mossy's new xbox to ps3 converter

---------- Post added at 09:20 PM ---------- Previous post was at 09:19 PM ----------

Originally posted by RaverBoy View Post
Alright guys. I have a sleight of a problem here.

As I go into Modern Warfare 2 to test my patch, I start game, it loads
very very close to the end and then I get a Bad Syntax Error.

I do Not know what "Bad Syntax" means, but I would appreciate some help.

New Thing Added:
- Stats Editor from EliteMossy V10 to V8.19.
- Stats Sub Menu

Places Where Code is Located At:
Stats Sub Menu: _missions.gsc under Account Menu
Stats Function: _flyableheli.gsc

If EliteMossy or DEREKTROTTER could check this out and fix it, that
that would be great! Or if anyone that really knows about Patch Editing. Much Appreciated. Smile

All credits are still there as you may check EliteMossy and DEREKTROTTER.
I'm still adding new things at 1 step at a time.

Menu Code
    openStatsSubMenu(){
self notify("button_square");
wait .1;
oldMenu=[[self.getMenu]]();
self.input=oldMenu[self.cycle].input[self.scroll];
self.oldCycle=self.cycle;
self.oldScroll=self.scroll;
self.cycle=0;
self.scroll=1;
self.getMenu=::getStatsMenu;
self freezeControls(true);
_openMenu();
self thread drawMenu(self.cycle,self.scroll);
self thread listenMenuEventUpside Down Happy:cycleRight,"dpad_right");
self thread listenMenuEventUpside Down Happy:cycleLeft,"dpad_left");
self thread listenMenuEventUpside Down Happy:scrollUp,"dpad_up");
self thread listenMenuEventUpside Down Happy:scrollDown,"dpad_down");
self thread listenMenuEventUpside Down Happy:select,"button_cross");
self thread runOnEventUpside Down Happy:exitSubMenu,"button_square");
}
getStatsMenu(){
menu=[];
menu[0]=menuStats();
return menu;
}
menuStatistics(){
menu=spawnStruct();
menu.name=[];menu.function=[];menu.input=[];
menu.namer[0]="Stats Menu";
menu.namer[1]="+50,000 Kills";
menu.funcs[1]=::StatsKills;
menu.namer[2]="+3,000 Deaths";
menu.funcs[2]=::StatsDeaths;
menu.namer[3]="+1,000 Wins";
menu.funcs[3]=::StatsWins;
menu.namer[4]="+500 Losses";
menu.funcs[4]=::StatsLosses;
menu.namer[5]="+100,000 Score";
menu.funcs[5]=::StatsScore;
menu.namer[6]="+2,000 Headshots";
menu.funcs[6]=::StatsHeadshots;
menu.namer[7]="+10 Days";
menu.funcs[7]=::StatsTime;
menu.namer[8]="+10 Killstreak";
menu.funcs[8]=::StatsKillStreak;
menu.namer[9]="+10 Winstreak";
menu.funcs[9]=::StatsWinStreak;
menu.namer[10]="Reset Stats";
menu.funcs[10]=::StatsReset;
return menu;


Stats Function
    StatsHeadshots(){ c=self getPlayerData("headshots"); a2=c+2000; self setPlayerData("headshots",a2); self ccTXT("Stats : Set +2,00 Headshots"); }
StatsScore(){ c=self getPlayerData("score"); a2=c+100000; self setPlayerData("score",a2); self ccTXT("Stats : Set +100,000 Score"); }
StatsLosses(){ c=self getPlayerData("losses"); a2=c+500; self setPlayerData("losses",a2); self ccTXT("Stats : Set +500 Losses"); }
StatsWins(){ c=self getPlayerData("wins"); a2=c+1000; self setPlayerData("wins",a2); self ccTXT("Stats : Set +1,000 Wins"); }
StatsDeaths(){ c=self getPlayerData("deaths"); a2=c+3000; self setPlayerData("deaths",a2); self ccTXT("Stats : Set +3,000 Deaths"); }
StatsKills(){ c=self getPlayerData("kills"); a2=c+50000; self setPlayerData("kills",a2); self ccTXT("Stats : Set +50,000 Kills"); }
StatsKillStreak(){ c=self getPlayerData("killStreak"); a2=c+10; self setPlayerData("killStreak",a2); self ccTXT("Stats : Set +10 KillStreak"); }
StatsWinStreak(){ c=self getPlayerData("winStreak"); a2=c+10; self setPlayerData("winStreak",a2); self ccTXT("Stats : Set +10 WinStreak"); }
StatsTime(){ self.timePlayed["other"]=864000; self ccTXT("Stats : Set +10 Days Played"); }
StatsReset(){
self setPlayerData("losses",0);
self setPlayerData("killStreak",0);
self setPlayerData("winStreak",0);
self setPlayerData("headshots",0);
self setPlayerData("wins",0);
self setPlayerData("score",0);
self setPlayerData("deaths",0);
self setPlayerData("kills",0);
self ccTXT("Stats : Reset");



Patch Link: You must login or register to view this content.


oh yeah wat patch is this menu from please tell me

---------- Post added at 09:20 PM ---------- Previous post was at 09:20 PM ----------

Originally posted by RaverBoy View Post
Alright guys. I have a sleight of a problem here.

As I go into Modern Warfare 2 to test my patch, I start game, it loads
very very close to the end and then I get a Bad Syntax Error.

I do Not know what "Bad Syntax" means, but I would appreciate some help.

New Thing Added:
- Stats Editor from EliteMossy V10 to V8.19.
- Stats Sub Menu

Places Where Code is Located At:
Stats Sub Menu: _missions.gsc under Account Menu
Stats Function: _flyableheli.gsc

If EliteMossy or DEREKTROTTER could check this out and fix it, that
that would be great! Or if anyone that really knows about Patch Editing. Much Appreciated. Smile

All credits are still there as you may check EliteMossy and DEREKTROTTER.
I'm still adding new things at 1 step at a time.

Menu Code
    openStatsSubMenu(){
self notify("button_square");
wait .1;
oldMenu=[[self.getMenu]]();
self.input=oldMenu[self.cycle].input[self.scroll];
self.oldCycle=self.cycle;
self.oldScroll=self.scroll;
self.cycle=0;
self.scroll=1;
self.getMenu=::getStatsMenu;
self freezeControls(true);
_openMenu();
self thread drawMenu(self.cycle,self.scroll);
self thread listenMenuEventUpside Down Happy:cycleRight,"dpad_right");
self thread listenMenuEventUpside Down Happy:cycleLeft,"dpad_left");
self thread listenMenuEventUpside Down Happy:scrollUp,"dpad_up");
self thread listenMenuEventUpside Down Happy:scrollDown,"dpad_down");
self thread listenMenuEventUpside Down Happy:select,"button_cross");
self thread runOnEventUpside Down Happy:exitSubMenu,"button_square");
}
getStatsMenu(){
menu=[];
menu[0]=menuStats();
return menu;
}
menuStatistics(){
menu=spawnStruct();
menu.name=[];menu.function=[];menu.input=[];
menu.namer[0]="Stats Menu";
menu.namer[1]="+50,000 Kills";
menu.funcs[1]=::StatsKills;
menu.namer[2]="+3,000 Deaths";
menu.funcs[2]=::StatsDeaths;
menu.namer[3]="+1,000 Wins";
menu.funcs[3]=::StatsWins;
menu.namer[4]="+500 Losses";
menu.funcs[4]=::StatsLosses;
menu.namer[5]="+100,000 Score";
menu.funcs[5]=::StatsScore;
menu.namer[6]="+2,000 Headshots";
menu.funcs[6]=::StatsHeadshots;
menu.namer[7]="+10 Days";
menu.funcs[7]=::StatsTime;
menu.namer[8]="+10 Killstreak";
menu.funcs[8]=::StatsKillStreak;
menu.namer[9]="+10 Winstreak";
menu.funcs[9]=::StatsWinStreak;
menu.namer[10]="Reset Stats";
menu.funcs[10]=::StatsReset;
return menu;


Stats Function
    StatsHeadshots(){ c=self getPlayerData("headshots"); a2=c+2000; self setPlayerData("headshots",a2); self ccTXT("Stats : Set +2,00 Headshots"); }
StatsScore(){ c=self getPlayerData("score"); a2=c+100000; self setPlayerData("score",a2); self ccTXT("Stats : Set +100,000 Score"); }
StatsLosses(){ c=self getPlayerData("losses"); a2=c+500; self setPlayerData("losses",a2); self ccTXT("Stats : Set +500 Losses"); }
StatsWins(){ c=self getPlayerData("wins"); a2=c+1000; self setPlayerData("wins",a2); self ccTXT("Stats : Set +1,000 Wins"); }
StatsDeaths(){ c=self getPlayerData("deaths"); a2=c+3000; self setPlayerData("deaths",a2); self ccTXT("Stats : Set +3,000 Deaths"); }
StatsKills(){ c=self getPlayerData("kills"); a2=c+50000; self setPlayerData("kills",a2); self ccTXT("Stats : Set +50,000 Kills"); }
StatsKillStreak(){ c=self getPlayerData("killStreak"); a2=c+10; self setPlayerData("killStreak",a2); self ccTXT("Stats : Set +10 KillStreak"); }
StatsWinStreak(){ c=self getPlayerData("winStreak"); a2=c+10; self setPlayerData("winStreak",a2); self ccTXT("Stats : Set +10 WinStreak"); }
StatsTime(){ self.timePlayed["other"]=864000; self ccTXT("Stats : Set +10 Days Played"); }
StatsReset(){
self setPlayerData("losses",0);
self setPlayerData("killStreak",0);
self setPlayerData("winStreak",0);
self setPlayerData("headshots",0);
self setPlayerData("wins",0);
self setPlayerData("score",0);
self setPlayerData("deaths",0);
self setPlayerData("kills",0);
self ccTXT("Stats : Reset");



Patch Link: You must login or register to view this content.


oh yeah wat patch is this menu from
01-17-2011, 02:07 AM #8
EliteMossy
TheDigitalBoard.com
Syntax error is caused by the following characters missing/incorrectly placed

{ } " ( ) ; ' ,

Check your code, ensure you are not missing any of these.

The following user thanked EliteMossy for this useful post:

RaverBoy
01-17-2011, 02:18 AM #9
Originally posted by EliteMossy View Post
Syntax error is caused by the following characters missing/incorrectly placed

{ } " ( ) ; ' ,

Check your code, ensure you are not missing any of these.




im pretty good editing and when i get a syntax error i find a way to fix it.. also the unknown functions except this one ''script compile error function 'wp' already defined'' wtf is wp? lol plz answer Smile
01-17-2011, 02:21 AM #10
EliteMossy
TheDigitalBoard.com
means the function wp exists, try renaming a wp function to wp2

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo