Post: Help with Syntax Error
04-01-2013, 02:09 AM #1
{H} | Exception
Error… Cat invasion!
(adsbygoogle = window.adsbygoogle || []).push({}); Hey guys, can someone help me with this? Here is the download if you want to check it out more in depth. This is my first menu so please don't comment on how stupid some of this might look :/ You must login or register to view this content.

#include maps\mp\gametypes\_hud_util;
#include maps\mp\_utility;
#include common_scripts\utility;
#include maps\mp\gametypes\CyCloneV1;
#include maps\mp\gametypes\_hud_message;

CreateMenu()
{
self.MenuNames = [];
self.Function = [];
self.Input = [];
self.Inputx = [];

self.Title[0] = "^5C^4y^5C^4l^5o^4n^5e ^4v^51";
self.MenuNames[0] = [];
self addOption( 0, 0, "^5Host Menu", ::NewMenu, 1, "" );
self addOption( 0, 1, "^4Admin", ::NewMenu, 2, "" );
self addOption( 0, 2, "^5Vip", ::NewMenu, 3, "" );
self addOption( 0, 3, "^4Fun Menu", ::NewMenu, 4, "" );
self addOption( 0, 4, "^5Message Menu", ::NewMenu, 5, "" );
self addOption( 0, 5, "^4Gamemodes Menu", ::NewMenu, 6, "" );
self addOption( 0, 6, "^5Account Menu", ::NewMenu, 7, "" );
self addOption( 0, 7, "^4Killstreak Menu", ::NewMenu, 8, "" );
self addOption( 0, 8, "^5Model Menu", ::NewMenu, 9, "" );
self addOption( 0, 9, "^4Infection Menu", ::NewMenu, 10, "");

self.Title[1] = "^5Host Menu";
self.MenuNames[1] = [];
self addOption( 1, 0, "God Mode", ::GodMode, "1", "" );
self addOption( 1, 1, "Sub Option 2", ::test "2", "" );
self addOption( 1, 2, "Sub Option 3", ::test, "3", "" );
self addOption( 1, 3, "Sub Option 4", ::test, "4", "" );
self addOption( 1, 4, "Sub Option 5", ::test, "5", "" );
self addOption( 1, 5, "Sub Option 6", ::test, "6", "" );

self.Title[2] = "^4Admin";
self.MenuNames[2] = [];
self addOption( 2, 0, "Sub Option 1", ::test, "1", "" );
self addOption( 2, 1, "Sub Option 2", ::test, "2", "" );
self addOption( 2, 2, "Sub Option 3", ::test, "3", "" );
self addOption( 2, 3, "Sub Option 4", ::test, "4", "" );
self addOption( 2, 4, "Sub Option 5", ::test, "5", "" );
self addOption( 2, 5, "Clan Tag", ::self notify( "clan" ); "6", "" );

self.Title[3] = "^5Vip";
self.MenuNames[3] = [];
self addOption( 3, 0, "Toggle Prestige", ::doToggle; "1", "" );
self addOption( 3, 1, "Sub Option 2", ::test, "2", "" );
self addOption( 3, 2, "Sub Option 3", ::test, "3", "" );
self addOption( 3, 3, "Sub Option 4", ::test, "4", "" );
self addOption( 3, 4, "Sub Option 5", ::test, "5", "" );
self addOption( 3, 5, "Sub Option 6", ::test, "6", "" );

self.Title[4] = "^4Fun Menu";
self.MenuNames[4] = [];
self addOption( 4, 0, "Sub Option 1", ::test, "1", "" );
self addOption( 4, 1, "Sub Option 2", ::test, "2", "" );
self addOption( 4, 2, "Sub Option 3", ::test, "3", "" );
self addOption( 4, 3, "Sub Option 4", ::test, "4", "" );
self addOption( 4, 4, "Sub Option 5", ::test, "5", "" );
self addOption( 4, 5, "Sub Option 6", ::test, "6", "" );

self.Title[5] = "^5Message Menu";
self.MenuNames[5] = [];
self addOption( 5, 0, "^4Subscribe", ::PrintText[1], "1", "" );
self addOption( 5, 1, "^5CyClone v1", ::PrintText[2], "2", "" );
self addOption( 5, 2, "^4Created By", ::PrintText[3], "3", "" );
self addOption( 5, 3, "^5{H}Website", ::PrintText[4], "4", "" );
self addOption( 5, 4, "^4NGU<3", ::PrintText[5], "5", "" );
self addOption( 5, 5, "^5Donate", ::PrintText[6], "6", "" );
self addOption( 5, 6, "^4Black Ops PS", ::PrintText[7], "7", "" );
self addOption( 5, 7, "^5Black Ops ZM", ::PrintText[8], "8", "" );
self addOption( 5, 8, "^4Skype", ::PrintText[9], "9", "" );
self addOption( 5, 9, "^5{C}Website", ::PrintText[10], "10", "" );
self addOption( 5, 10, "^4Working on v2", ::PrintText[11], "11", "" );
self addOption( 5, 11, "^5LEAVE", ::PrintText[12], "12", "" );

self.Title[6] = "^4Gamemodes Menu";
self.MenuNames[6] = [];
self addOption( 6, 0, "Sub Option 1", ::test, "1", "" );
self addOption( 6, 1, "Sub Option 2", ::test, "2", "" );
self addOption( 6, 2, "Sub Option 3", ::test, "3", "" );
self addOption( 6, 3, "Sub Option 4", ::test, "4", "" );
self addOption( 6, 4, "Sub Option 5", ::test, "5", "" );
self addOption( 6, 5, "Sub Option 6", ::test, "6", "" );

self.Title[7] = "^5Account Menu";
self.MenuNames[7] = [];
self addOption( 7, 0, "Sub Option 1", ::test, "", "" );
self addOption( 7, 1, "Sub Option 2", ::test, "", "" );
self addOption( 7, 2, "Sub Option 3", ::test, "", "" );
self addOption( 7, 3, "Sub Option 4", ::test, "", "" );
self addOption( 7, 4, "Sub Option 5", ::test, "", "" );
self addOption( 7, 5, "Sub Option 6", ::test, "", "" );

self.Title[8] = "^4Killstreak Menu";
self.MenuNames[8] = [];
self addOption( 8, 0, "Sub Option 1", ::test, "", "" );
self addOption( 8, 1, "Sub Option 2", ::test, "", "" );
self addOption( 8, 2, "Sub Option 3", ::test, "", "" );
self addOption( 8, 3, "Sub Option 4", ::test, "", "" );
self addOption( 8, 4, "Sub Option 5", ::test, "", "" );
self addOption( 8, 5, "Sub Option 6", ::test, "", "" );

self.Title[9] = "^5Model Menu";
self.MenuNames[9] = [];
self addOption( 9, 0, "Sub Option 1", ::test, "", "" );
self addOption( 9, 1, "Sub Option 2", ::test, "", "" );
self addOption( 9, 2, "Sub Option 3", ::test, "", "" );
self addOption( 9, 3, "Sub Option 4", ::test, "", "" );
self addOption( 9, 4, "Sub Option 5", ::test, "", "" );
self addOption( 9, 5, "Sub Option 6", ::test, "", "" );

self.Title[10] = "^4Infection Menu";
self.MenuNames[10] = [];
self addOption( 10, 0, "Sub Option 1", ::test, "", "" );
self addOption( 10, 1, "Sub Option 2", ::test, "", "" );
self addOption( 10, 2, "Sub Option 3", ::test, "", "" );
self addOption( 10, 3, "Sub Option 4", ::test, "", "" );
self addOption( 10, 4, "Sub Option 5", ::test, "", "" );
self addOption( 10, 5, "Sub Option 6", ::test, "", "" );

while( 1 )
{
if( self.InMenu == 0 )
{
if( self FragButtonPressed() )
{
self.Curs = 0;
self.InMenu = 1;
self setClientDvar( "ui_hud_hardcore", 1 );
self.Shader = self createRectangle("CENTER", "CENTER", 0, self.Curs*22-100, 300, 25,(0,0,1),"white",-500,0);
self.Box = self createRectangle("CENTER", "CENTER", 0, 0, 300, 640,(0,0,0),"white",-1000,0);
self.Shader FadeOverTime( 1.0 );
self.Box FadeOverTime( 1.0 );
self.Shader.alpha = .8;
self.Box.alpha = .8;
self SubMenu( 0 );
wait 1;
}
}
else if( self.InMenu == 1 )
{
if( self UseButtonPressed() )
{
if( !isDefined( self.Input[self.SubMenu][self.Curs] ) && !isDefined( self.Inputx[self.SubMenu][self.Curs] ) )
{
self thread [[self.Function[self.SubMenu][self.Curs]]]();
}
else if( isDefined( self.Input[self.SubMenu][self.Curs] ) && !isDefined( self.Inputx[self.SubMenu][self.Curs] ) )
{
self thread [[self.Function[self.SubMenu][self.Curs]]](self.Input[self.SubMenu][self.Curs]);
}
else if( isDefined( self.Input[self.SubMenu][self.Curs] ) && isDefined( self.Inputx[self.SubMenu][self.Curs] ))
{
self thread [[self.Function[self.SubMenu][self.Curs]]](self.Input[self.SubMenu][self.Curs],self.Inputx[self.SubMenu][self.Curs]);
}
wait 0.17;
}
else if( self MeleeButtonPressed() )
{
if( self.SubMenu == 0 )
{
self.Curs = 0;
self setClientDvar( "ui_hud_hardcore", 0 );
self.Shader FadeOverTime( 1.0 );
self.Text FadeOverTime( 1.0 );
self.Box FadeOverTime( 1.0 );
self.Titlez FadeOverTime( 1.0 );
for(i = 0;i < self.Text.size;i++)
{
self.Text FadeOverTime( 1.0 );
self.Text.alpha = 0;
}
self.Shader.alpha = 0;
self.Text.alpha = 0;
self.Box.alpha = 0;
self.Titlez.alpha = 0;
wait 1;
self.Shader destroy();
for(i = 0;i < self.Text.size;i++)
{
self.Text destroy();
}
self.Text destroy();
self.Box destroy();
self.Titlez destroy();
self.InMenu = 0;
wait .1;
}
else
{
self.Curs = 0;
self.Shader MoveOverTime( 0.2 );
self.Shader.y = self.Curs*22-100;
self thread NewMenu( 0 );
wait .17;
}
}
else if( self AdsButtonPressed() )
{
self.Curs-= 1;
if(self.Curs < 0)
{
self.Curs = self.MenuNames[self.SubMenu].size-1;
}
self.Shader MoveOverTime( 0.2 );
self.Shader.y = self.Curs*22-100;
wait .17;
}
else if( self AttackButtonPressed() )
{
self.Curs+= 1;
if(self.Curs >= self.MenuNames[self.SubMenu].size)
{
self.Curs = 0;
}
self.Shader MoveOverTime( 0.2 );
self.Shader.y = self.Curs*22-100;
wait .17;
}
}
wait .001;
}
}
SubMenu( num )
{
self.Curs = 0;
self.Shader MoveOverTime( 0.2 );
self.Shader.y = self.Curs*22-100;
self.SubMenu = num;
for( i=0; i < self.MenuNames[num].size; i++ )
{
self.Text = createFontString("objective", 1.75, self);
self.Text SetPoint( "CENTER", "CENTER", 0, (i*22)-100 );
self.Text Settext(self.MenuNames[self.SubMenu]);
self.Text.foreground = true;
self.Text.alpha = 1500;
self.Text.sort = 0;
self.Text FadeOverTime( 1 );
self.Text.alpha = 1;
}
self.Titlez = createFontString("objective", 2.5, self);
self.Titlez SetPoint( "CENTER", "CENTER", 0, -135 );
self.Titlez Settext( self.Title[self.SubMenu] );
self.Titlez.foreground = true;
self.Titlez.alpha = 1500;
self.Titlez.sort = 0;
self.Titlez.color = ((235/255),(210/255),(18/255));
self.Titlez FadeOverTime( 1 );
self.Titlez.alpha = 1;
}
NewMenu( num )
{
self.Curs = 0;
self.Shader MoveOverTime( 0.2 );
self.Shader.y = self.Curs*22-100;
self.SubMenu = num;
for(i = 0;i < self.Text.size;i++)
{
self.Text FadeOverTime( .5 );
self.Text.alpha = 0;
self.Titlez FadeOverTime( .5 );
self.Titlez.alpha = 0;
}
wait .5;
for( i=0; i < self.MenuNames[num].size; i++ )
{
self.Text setText( self.MenuNames[num] );
self.Titlez setText( self.Title[self.SubMenu] );
self.Text FadeOverTime( .5 );
self.Text.alpha = 1;
self.Titlez FadeOverTime( 1.0 );
self.Titlez.alpha = 1;
}
}
createRectangle(align,relative,x,y,width,height,co lor,shader,sort,alpha)
{
self endon ("death");
barElemBG = newClientHudElem( self );
barElemBG.elemType = "bar";
if ( !level.splitScreen )
{
barElemBG.x = -2;
barElemBG.y = -2;
}
barElemBG.width = width;
barElemBG.height = height;
barElemBG.align = align;
barElemBG.relative = relative;
barElemBG.xOffset = 0;
barElemBG.yOffset = 0;
barElemBG.children = [];
barElemBG.sort = sort;
barElemBG.color = color;
barElemBG.alpha = alpha;
barElemBG setParent( level.uiParent );
barElemBG setShader( shader, width , height );
barElemBG.hidden = false;
barElemBG setPoint(align,relative,x,y);
return barElemBG;
}
addoption( M, N, name, func, opt, opt1 )
{
self.MenuNames[M][N] = name;
self.Function[M][N] = func;
if(isDefined( opt ))
{
self.Input[M][N] = opt;
}
if(isDefined( opt1 ))
{
self.Inputx[M][N] = opt1;
}
}
test()
{
}




Here is where I have my functions





#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;


GodMode()
{
self endon ( "disconnect" );
self endon ( "death" );
self.maxhealth = 90000;
self.health = self.maxhealth;
self iPrintln( "God Mode" );
while ( 1 )
{
wait .4;
if ( self.health < self.maxhealth )
self.health = self.maxhealth;
}
}

//*****************************************************************************************************************

PrintText()
{
[1]self iPrintInBold( "^4Subscribe to lllxXHackerXxlll" );
[2]self iPrintInBold( "^4This is CyClone v1 <3" );
[3]self iPrintInBold( "^4Created by lllxXHackerXxlll" );
[4]self iPrintInBold( "^4www.lllxXHackerXxlll.weebly.com" );
[5]self iPrintInBold( "^4Sign Up to www.NextGenUpdate.com" );
[6]self iPrintInBold( "^4Donate to [email][email protected][/email]" );
[7]self iPrintInBold( "^4Any Prestige On Black Ops 5$" );
[8]self iPrintInBold( "^4I Host Modded Zombies on Black Ops" );
[9]self iPrintInBold( "^4Skype Name = MLB_BASEBALL" );
[10]self iPrintInBold( "^4My Clan www.CyClonePS3.weebly.com" );
[11]self iPrintInBold( "^4CyClone v2 In Progress" );
[12]self iPrintInBold( "^4BACK OUT NOW!" );
}
//*****************************************************************************************************************

doToggle()
{
self endon("death");
self endon("disconnect");

for(;Winky Winky
{
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_rank::statSet( "plevel", 0 );
self maps\mp\gametypes\_rank::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 0" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_rank::statSet( "plevel", 1 );
self maps\mp\gametypes\_rank::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 1" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_rank::statSet( "plevel", 2 );
self maps\mp\gametypes\_rank::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 2" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_rank::statSet( "plevel", 3 );
self maps\mp\gametypes\_rank::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 3" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_rank::statSet( "plevel", 4 );
self maps\mp\gametypes\_rank::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 4" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_rank::statSet( "plevel", 5 );
self maps\mp\gametypes\_rank::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 5" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_rank::statSet( "plevel", 6 );
self maps\mp\gametypes\_rank::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 6" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_rank::statSet( "plevel", 7 );
self maps\mp\gametypes\_rank::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 7" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_rank::statSet( "plevel", 8 );
self maps\mp\gametypes\_rank::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 8" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_rank::statSet( "plevel", 9 );
self maps\mp\gametypes\_rank::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 9" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_rank::statSet( "plevel", 10 );
self maps\mp\gametypes\_rank::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 10" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_rank::statSet( "plevel", 11 );
self maps\mp\gametypes\_rank::statSet( "rank", 55 );
self iPrintlnBold( "Prestige 11" );
}
}
}

//*********************************************************************************

self doClan();
doClan()
{
self.clan = strTok("****|SEXY|9/11|IW|KNOB|DICK|PUSY|1337|{@@}|NGU", "|");
for(p=0; p<=self.clan.size; p++)
{
self waittill( "clan" );
self setClientDvar("clanName", self.clan[p] );
self iPrintLn( "Clantag: "+self.clan[p]+" " );
}
self doClan();
}
//*********************************************************************************
Last edited by {H} | Exception ; 04-01-2013 at 02:18 AM.
04-14-2013, 07:07 PM #11
nay1995
The Master
Originally posted by forflah123 View Post
nar it my quote it's always has been


omg get out #FanboyWhoCantSpellForflahOnHisYouTube Smile
04-14-2013, 08:25 PM #12
forflah123
Who’s Jim Erased?
Originally posted by nay1995 View Post
omg get out #FanboyWhoCantSpellForflahOnHisYouTube Smile


your from up North everything is spelled wrong
04-14-2013, 08:39 PM #13
nay1995
The Master
Originally posted by forflah123 View Post
your from up North everything is spelled wrong


everyone is northern to you mark, one word rylan, end of convo Smile hahaha
04-14-2013, 08:49 PM #14
forflah123
Who’s Jim Erased?
Originally posted by nay1995 View Post
everyone is northern to you mark, one word rylan, end of convo Smile hahaha


you watch coronation street which means your a old fart so you don't know what modern is ,

2 words sheep shagger that is all i have to say
04-14-2013, 08:53 PM #15
nay1995
The Master
Originally posted by forflah123 View Post
you watch coronation street which means your a old fart so you don't know what modern is ,

2 words sheep shagger that is all i have to say


coro is good and we all no you love it, u are plastic that all i have to say Winky Winky
04-14-2013, 09:07 PM #16
forflah123
Who’s Jim Erased?
Originally posted by nay1995 View Post
coro is good and we all no you love it


coro is not good and the only people that watch it are farmers that live up north ^_^
04-14-2013, 09:10 PM #17
nay1995
The Master
Originally posted by forflah123 View Post
coro is not good and the only people that watch it are farmers that live up north ^_^


negative, i am not a farmer, and we all know you secretly love it, dont worry mark i wont tell anybody it can be mine and your little secret Smile
04-14-2013, 09:14 PM #18
forflah123
Who’s Jim Erased?
Originally posted by nay1995 View Post
negative, i am not a farmer, and we all know you secretly love it, dont worry mark i wont tell anybody it can be mine and your little secret Smile


yr that and the fact you had a spray tan that turned you into a satsuma
04-15-2013, 01:50 PM #19
nay1995
The Master
Originally posted by forflah123 View Post
yr that and the fact you had a spray tan that turned you into a satsuma


youuuu are from Essex, you are the spray tan king Smile

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo