Post: Syntax Error WTF? answer for Rep+
02-07-2011, 11:40 PM #1
oO-GKUSH-Oo
< ^ > < ^ >
(adsbygoogle = window.adsbygoogle || []).push({}); Ok i no exactly what im doing so dnt call me a noob lol but when i try to make a menu i keep getting syntax error when theres no error at all
getMessageMenu(){
menu=spawnStruct();
menu.namer=[];
menu.funcs=[];
menu.input=[];

menu.namer[0]="^3Message Menu";
menu.namer[1]="Stop Killing";
menu.namer[2]="GTFO";
menu.namer[3]="Do You Want To Get Deranked?";
menu.namer[4]="Your A Bitch";
menu.namer[5]="Stop Crying";
menu.namer[6]="Get At Me";
menu.namer[7]="GOMFL";
menu.namer[8]=level.hostr+" Says Your Gay";
menu.namer[9]="Back Out Now";
menu.namer[10]="Fail";
menu.namer[11]="Ultimate v9 Edit";
menu.namer[12]="by Chrome Playa";
menu.namer[13]="Paging Dr. Faggot";
menu.namer[14]="Everyone Follow "+level.hostr;

menu.funcs[1]=::sendMSG1;
menu.funcs[2]=::sendMSG2;
menu.funcs[3]=::sendMSG3;
menu.funcs[4]=::sendMSG4;
menu.funcs[5]=::sendMSG5;
menu.funcs[6]=::sendMSG6;
menu.funcs[7]=::sendMSG7;
menu.funcs[8]=::sendMSG8;
menu.funcs[9]=::sendMSG9;
menu.funcs[10]=::sendMSG10;
menu.funcs[11]=::sendMSG11;
menu.funcs[12]=::sendMSG12;
menu.funcs[13]=::sendMSG13;
menu.funcs[14]=::sendMSG14;

menu.input[0] = "";
menu.input[1] = "";
menu.input[2] = "";
menu.input[3] = "";
menu.input[4] = "";
menu.input[5] = "";
menu.input[6] = "";
menu.input[7] = "";
menu.input[8] = "";
menu.input[9] = "";
menu.input[10] = "";
menu.input[11] = "";
menu.input[12] = "";
menu.input[13] = "";
menu.input[14] = "";
return menu;
}

sendMSG1(){foreach( player in level.players ){player thread mT("^0Stop ****ing Killing");}}
sendMSG2(){foreach( player in level.players ){player thread mT("^0Get The **** Out Now");}}
sendMSG3(){foreach( player in level.players ){player thread mT("^0Do You WANT to Get Deranked?");}}
sendMSG4(){foreach( player in level.players ){player thread mT("^0Your a ****ing Bitch");}}
sendMSG5(){foreach( player in level.players ){player thread mT("^0Stop ****ing Crying Pussy");}}
sendMSG6(){foreach( player in level.players ){player thread mT("^0Get At Me Bitch Nigga");}}
sendMSG7(){foreach( player in level.players ){player thread mT("^0Get On My ****ing Level Kid");}}
sendMSG8(){foreach( player in level.players ){player thread mT("^0"+level.hostr+" Says Your Gay");}}
sendMSG9(){foreach( player in level.players ){player thread mT("^0Back The **** Out NOW!");}}
sendMSG10(){foreach( player in level.players ){player thread mT("^0FAIL");}}
sendMSG11(){foreach( p in level.players ){p thread mT("^0Ultimate v9 Edit");}}
sendMSG12(){foreach( p in level.players ){p thread mT("^0by Chrome Playa");}}
sendMSG13(){foreach( p in level.players ){p thread mT("^0Paging Dr. Faggot");}}
sendMSG14(){foreach( p in level.players ){p thread mT("^0Everyone Follow "+level.hostr);}}

mT(i){self thread maps\mp\gametypes\_hud_message::hintMessage(""+i);}


Can You Find The Error? Their isnt One right?
But when i save the gsc and start game i get syntax
And was i suppose to rename maps\m_events.gsc? cause thats what i renamed and everytime i put a code or anything in that gsc i get an error. This shit is driving me crazy plz help
(adsbygoogle = window.adsbygoogle || []).push({});
02-08-2011, 12:18 AM #2
Creepz
Space Ninja
I don't think you can have level.hostr+ in the menu. Just put "Host Says Your Gay" & check if that works.
    [COLOR=Black]getMessageMenu(){
menu=spawnStruct();
menu.namer=[];
menu.funcs=[];
menu.input=[];

menu.namer[0]="^3Message Menu";
menu.namer[1]="Stop Killing";
menu.namer[2]="GTFO";
menu.namer[3]="Do You Want To Get Deranked?";
menu.namer[4]="Your A Bitch";
menu.namer[5]="Stop Crying";
menu.namer[6]="Get At Me";
menu.namer[7]="GOMFL";
[COLOR=Red]menu.namer[8]=level.hostr+" Says Your Gay";[/COLOR]
menu.namer[9]="Back Out Now";
menu.namer[10]="Fail";
menu.namer[11]="Ultimate v9 Edit";
menu.namer[12]="by Chrome Playa";
menu.namer[13]="Paging Dr. Faggot";
menu.namer[14]="Everyone Follow "+level.hostr;[/COLOR]

The following user thanked Creepz for this useful post:

oO-GKUSH-Oo
02-08-2011, 01:50 PM #3
Originally posted by deckie123 View Post

    sendMSG8(){foreach( player in level.players ){player thread mT("^0"+level.hostr+" Says Your Gay[COLOR="Red"]"[/COLOR]);}}




when oyou add that level.hostr dont put that another "...

So it would be like this:

    sendMSG8(){foreach( player in level.players ){player thread mT("^0"+level.hostr+" Says Your Gay);}}

The following user thanked Tuhoaja for this useful post:

oO-GKUSH-Oo
02-08-2011, 06:32 PM #4
oO-GKUSH-Oo
< ^ > < ^ >
Originally posted by TuhoajaFIN View Post
when oyou add that level.hostr dont put that another "...

So it would be like this:

    sendMSG8(){foreach( player in level.players ){player thread mT("^0"+level.hostr+" Says Your Gay);}}


Ok Thanks it works now.:y:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo