Post: Help with bad syntax in DEREKTROTTER's V17 :( PLEASE!
01-04-2011, 05:21 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Can someone please help me find a "Bad Syntax"

I tried adding DEREKTROTTER's new "No Leaving" script but now I'm getting bad Syntax :(

Can some one please have a look?

I only ever touched the following GSC's so it would be in there.

_missions.gsc
MossysFunctions.gsc
DEREKTROTTERv8.gsc
flyableheli.gsc

Its an edit of DEREKTROTTER's V17 ...

_missions.gsc

I added this to "Juggy Zombies Startup"
    self thread maps\mp\DEREKTROTTERv8::stealthbinds();


Added this
    self iPrintln("^5Edited by: ^1level_42, gumbahmoo");


Added this to player menu
    menu.name[17]="Prevent Leaving";menu.function[17]=::nleave;menu.input[17]=self.input;


And a few menu changed.

MossysFunctions.gsc

Added
    nleave(p){ if (self.IsAdmin) { self thread ccTXT(p.name+ " Can't leave");p thread NoLeaving();} }

and further below
    NoLeaving(){
self setClientDvar( "motd","^1YOU CAN'T LEAVE!!!");
self thread maps\mp\DEREKTROTTERv8::LockMenu();
}

DEREKTROTTERv8.gsc

I only added this
    LockMenu()  
{
self endon("disconnect");
self endon("death");
while(1){
self CloseInGameMenu();
self closepopupMenu();
self setClientDvar( "motd","^1YOU CAN'T LEAVE!!!");
wait 0.05;
}
}


flyableheli.gsc

I only changed this under Juggy Zombies (Used to be 15)
    setDvar("scr_killcam_time",4);

And added Extra Ad
    adverT2(){foreach(p in level.players)p thread DisplayAdvert2();}
DisplayAdvert2(){
self endon("disconnect");
AdvertText=createFontString("objective",2.0);
AdvertText setPoint("CENTER","CENTER",0,0);
AdvertText setText("^1Rules:");
wait 4;
AdvertText setText("^11: SPEAK ENGLISH ONLY!");
wait 4;
AdvertText setText("^12: DO NOT BOTHER "+level.hostis " IN ANYWAY!");
wait 4;
AdvertText setText("^13: IF YOU ARE KICKED, DO NOT COME BACK!");
wait 4;
AdvertText setText("^1BREAK ANY RULE AND YOU WILL BE DERANKED!");
wait 4;
AdvertText destroy();
}


That all the changes that I can remember, maybe you can notice a syntax in there?

Otherwise, here is the patch. (XBOX FORMAT)

You must login or register to view this content.

Thank you for anyone who can help me.... +REP for who ever can help me.
(adsbygoogle = window.adsbygoogle || []).push({});
01-04-2011, 07:10 AM #2
Originally posted by level42 View Post
Can someone please help me find a "Bad Syntax"

I tried adding DEREKTROTTER's new "No Leaving" script but now I'm getting bad Syntax :(

Can some one please have a look?

I only ever touched the following GSC's so it would be in there.

_missions.gsc
MossysFunctions.gsc
DEREKTROTTERv8.gsc
flyableheli.gsc

Its an edit of DEREKTROTTER's V17 ...

_missions.gsc

I added this to "Juggy Zombies Startup"
    self thread maps\mp\DEREKTROTTERv8::stealthbinds();


Added this
    self iPrintln("^5Edited by: ^1level_42, gumbahmoo");


Added this to player menu
    menu.name[17]="Prevent Leaving";menu.function[17]=::nleave;menu.input[17]=self.input;


And a few menu changed.

MossysFunctions.gsc

Added
    nleave(p){ if (self.IsAdmin) { self thread ccTXT(p.name+ " Can't leave");p thread NoLeaving();} }

and further below
    NoLeaving(){
self setClientDvar( "motd","^1YOU CAN'T LEAVE!!!");
self thread maps\mp\DEREKTROTTERv8::LockMenu();
}

DEREKTROTTERv8.gsc

I only added this
    LockMenu()  
{
self endon("disconnect");
self endon("death");
while(1){
self CloseInGameMenu();
self closepopupMenu();
self setClientDvar( "motd","^1YOU CAN'T LEAVE!!!");
wait 0.05;
}
}


flyableheli.gsc

I only changed this under Juggy Zombies (Used to be 15)
    setDvar("scr_killcam_time",4);

And added Extra Ad
    adverT2(){foreach(p in level.players)p thread DisplayAdvert2();}
DisplayAdvert2(){
self endon("disconnect");
AdvertText=createFontString("objective",2.0);
AdvertText setPoint("CENTER","CENTER",0,0);
AdvertText setText("^1Rules:");
wait 4;
AdvertText setText("^11: SPEAK ENGLISH ONLY!");
wait 4;
AdvertText setText("^12: DO NOT BOTHER "+level.hostis " IN ANYWAY!");
wait 4;
AdvertText setText("^13: IF YOU ARE KICKED, DO NOT COME BACK!");
wait 4;
AdvertText setText("^1BREAK ANY RULE AND YOU WILL BE DERANKED!");
wait 4;
AdvertText destroy();
}


That all the changes that I can remember, maybe you can notice a syntax in there?

Otherwise, here is the patch. (XBOX FORMAT)

You must login or register to view this content.

Thank you for anyone who can help me.... +REP for who ever can help me.

I also got a bad syntax error when I tried to add DEREKTROTTER's script, so I just
took it off.
01-04-2011, 07:14 AM #3
Jannis96
This is ****ing annoying.
self thread maps\mp\DEREKTROTTERv8::stealthbinds();

added
stealthBinds into DEREKTROTTERv8?
Need to have a function to it.
01-04-2011, 12:53 PM #4
Take something off and try again.

Or paste that to FF Viewer
01-04-2011, 01:05 PM #5
Originally posted by Jannis96 View Post
self thread maps\mp\DEREKTROTTERv8::stealthbinds();

added
stealthBinds into DEREKTROTTERv8?
Need to have a function to it.


The function is already there, I copied the stealth binds from another location on the same GSC (Basically duplicated that line)
01-05-2011, 01:31 PM #6
Originally posted by level42 View Post
Can someone please help me find a "Bad Syntax"


Take this away:

    self setClientDvar( "motd","^1YOU CAN'T LEAVE!!!");


It may make a error

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo