Post: Can Someone Help Me Figure Out Why Im Getting a Bad Syntax Error?
08-28-2011, 06:06 AM #1
Jeremy
Former Staff
(adsbygoogle = window.adsbygoogle || []).push({});
Can Someone Help Me Figure Out Why Im Getting a Bad Syntax Error?

Download: You must login or register to view this content.

Mods Under: advisablemod.gsc
(adsbygoogle = window.adsbygoogle || []).push({});
08-28-2011, 09:14 AM #2
Karoolus
I'm the W@W Menu Guy !
Originally posted by Advisable View Post
Can Someone Help Me Figure Out Why Im Getting a Bad Syntax Error?

Download: You must login or register to view this content.

Mods Under: advisablemod.gsc


    
colour_class()
{
self setClientDvar( "customclass1", "^1"^1Advisable"!" );
self setClientDvar( "customclass2", "^4"^2Advisable"!" );
self setClientDvar( "customclass3", "^5"^3Advisable"!" );
self setClientDvar( "customclass4", "^6"^4Advisable"!" );
self setClientDvar( "customclass5", "^1"^5Advisable"!" );
self thread cmdT( "^1Custom Classes: ^7Colored" );
}


should be

    colour_class()
{
self setClientDvar( "customclass1", "^1Advisable"!" );
self setClientDvar( "customclass2", "^4Advisable"!" );
self setClientDvar( "customclass3", "^5Advisable"!" );
self setClientDvar( "customclass4", "^6Advisable"!" );
self setClientDvar( "customclass5", "^1Advisable"!" );
self thread cmdT( "^1Custom Classes: ^7Colored" );
}

The following user thanked Karoolus for this useful post:

RayJ_chugs
08-28-2011, 09:21 AM #3
Originally posted by Karoolus View Post
    
colour_class()
{
self setClientDvar( "customclass1", "^1"^1Advisable"!" );
self setClientDvar( "customclass2", "^4"^2Advisable"!" );
self setClientDvar( "customclass3", "^5"^3Advisable"!" );
self setClientDvar( "customclass4", "^6"^4Advisable"!" );
self setClientDvar( "customclass5", "^1"^5Advisable"!" );
self thread cmdT( "^1Custom Classes: ^7Colored" );
}


should be

    colour_class()
{
self setClientDvar( "customclass1", "^1Advisable"!" );
self setClientDvar( "customclass2", "^4Advisable"!" );
self setClientDvar( "customclass3", "^5Advisable"!" );
self setClientDvar( "customclass4", "^6Advisable"!" );
self setClientDvar( "customclass5", "^1Advisable"!" );
self thread cmdT( "^1Custom Classes: ^7Colored" );
}


I tried to use that before but couldn't get the coloured classes to work.. Any one know why?
08-28-2011, 09:25 AM #4
Karoolus
I'm the W@W Menu Guy !
Originally posted by x. View Post
I tried to use that before but couldn't get the coloured classes to work.. Any one know why?


mmhm, they work just fine for me :s
08-28-2011, 09:58 AM #5
vRoyale
Are you high?
i Just tried it and it workdd good ?
08-28-2011, 05:59 PM #6
Jeremy
Former Staff
Originally posted by Karoolus View Post
    
colour_class()
{
self setClientDvar( "customclass1", "^1"^1Advisable"!" );
self setClientDvar( "customclass2", "^4"^2Advisable"!" );
self setClientDvar( "customclass3", "^5"^3Advisable"!" );
self setClientDvar( "customclass4", "^6"^4Advisable"!" );
self setClientDvar( "customclass5", "^1"^5Advisable"!" );
self thread cmdT( "^1Custom Classes: ^7Colored" );
}


should be

    colour_class()
{
self setClientDvar( "customclass1", "^1Advisable"!" );
self setClientDvar( "customclass2", "^4Advisable"!" );
self setClientDvar( "customclass3", "^5Advisable"!" );
self setClientDvar( "customclass4", "^6Advisable"!" );
self setClientDvar( "customclass5", "^1Advisable"!" );
self thread cmdT( "^1Custom Classes: ^7Colored" );
}
Thanks Karoolus :y:

---------- Post added at 01:59 PM ---------- Previous post was at 01:30 PM ----------

Originally posted by x. View Post
I tried to use that before but couldn't get the coloured classes to work.. Any one know why?
i just did what Karoolus said to do and it didnt work either so i took out colored classes completely and i still got the error...

can someone look at the patch again?
08-28-2011, 06:25 PM #7
Originally posted by Advisable View Post
Thanks Karoolus :y:

---------- Post added at 01:59 PM ---------- Previous post was at 01:30 PM ----------

i just did what Karoolus said to do and it didnt work either so i took out colored classes completely and i still got the error...

can someone look at the patch again?
Can't see anything obvious.. Although, what's this?

self doPrestige();

---------- Post added at 07:25 PM ---------- Previous post was at 07:20 PM ----------

Originally posted by Advisable View Post
Thanks Karoolus :y:

---------- Post added at 01:59 PM ---------- Previous post was at 01:30 PM ----------

i just did what Karoolus said to do and it didnt work either so i took out colored classes completely and i still got the error...

can someone look at the patch again?


And you really should get rid of some the coding in there. Why don't you use a function like this

DoStatSet(stat,value){self maps\mp\gametypes\_persistence::statSet( stat, value );}

Then use DoStatSet("win_streak", 27);
08-28-2011, 06:27 PM #8
Jeremy
Former Staff
Originally posted by x. View Post
Can't see anything obvious.. Although, what's this?

self doPrestige();

---------- Post added at 07:25 PM ---------- Previous post was at 07:20 PM ----------



And you really should get rid of some the coding in there. Why don't you use a function like this

DoStatSet(stat,value){self maps\mp\gametypes\_persistence::statSet( stat, value );}

Then use DoStatSet("win_streak", 27);
whats wrong with self doPrestige();

and i dont know what to do with "DoStatSet(stat,value){self maps\mp\gametypes\_persistence::statSet( stat, value );}"

can you add me on AIM or MSN and Teamviewer me and show me what you mean?
08-28-2011, 06:34 PM #9
Originally posted by Advisable View Post
whats wrong with self doPrestige(); ?

and i dont know what to do with "DoStatSet(stat,value){self maps\mp\gametypes\_persistence::statSet( stat, value );}"

can you add me on AIM or MSN and Teamviewer me and show me what you mean?


Its just it might be self thread doPrestige(); and I can't see a thread called doPrestige anyway??

The thing I gave you is a shortcut function. You put that in your patch once..

DoStatSet(stat,value){self maps\mp\gametypes\_persistence::statSet( stat, value );}

And then when you want to change a stat you use the shorter version..

DoStatSet("win_streak", 27);
DoStatSet("kills", 27);

etc etc..

Look in my patch, I use shortcuts a lot...
08-28-2011, 06:37 PM #10
Jeremy
Former Staff
Originally posted by x. View Post
Its just it might be self thread doPrestige(); and I can't see a thread called doPrestige anyway??

The thing I gave you is a shortcut function. You put that in your patch once..

DoStatSet(stat,value){self maps\mp\gametypes\_persistence::statSet( stat, value );}

And then when you want to change a stat you use the shorter version..

DoStatSet("win_streak", 27);
DoStatSet("kills", 27);

etc etc..

Look in my patch, I use shortcuts a lot...
the self thread for doPrestige(); is called doTP(); cuz it stands for Toggle Prestige

and can you show me how to use that shortcut, cuz you lost me...

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo