Post: Bad Syntax Error
01-04-2011, 07:01 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I'm getting a "Bad Syntax" script compile error when testing patch.

I was trying to add the "cardicon display on welcome message."
Does anyone know why? Help Appreciated.

I added this to init()

    precacheShader("cardicon_prestige_9");
level.icontest = "cardicon_prestige_9";
}
doSplash(){
self endon("disconnect");
wait 6;
notifyData=spawnstruct();
notifyData.iconName = level.icontest;
notifyData.titleText ="Welcome to ^1EleCtroRaverR's Lobby!";
notifyData.notifyText ="^1Invites Only!";
notifyData.notifyText2 ="^1Have Fun and Enjoy!";
notifyData.glowColor = (0.0, 0.0, 1.0);
notifyData.font = "DAStacks";
self thread mapsmpgametypes_hud_message::notifyMessage(notifyData);
wait 1;
(adsbygoogle = window.adsbygoogle || []).push({});
01-04-2011, 07:31 AM #2
See My Next Post
======
======
======
======
======
===========
=======
=====
===
=
01-04-2011, 09:12 AM #3
Thanks! I will test it this out tomorrow and give feedback if it works. Smile
01-04-2011, 03:44 PM #4
Originally posted by RaverBoy View Post
Thanks! I will test it this out tomorrow and give feedback if it works. Smile

Add this

    init()
{
precacheShader("cardicon_prestige_9");
level.icontest = "cardicon_prestige_9";
}






    onPlayerSpawned(){

self waittill("spawned_player");

self thread doSplash();
}

    
doSplash(){
notifyData = spawnstruct();
notifyData.iconName = level.icontest;
notifyData.notifyText = hintText;
notifyData.titleText = "Welcome to ^1EleCtroRaverR's Lobby!"+self.name;
notifyData.notifyText = "^1Invites Only!";
notifyData.notifyText2 = "^1Have Fun and Enjoy!";
notifyData.glowColor = (0.5, 0.0, 0.Cool Man (aka Tustin)//Sexy Purple Color
notifyData.duration = 8; // 8 Seconds long...
self thread mapsmpgametypes_hud_message::notifyMessage( notifyData );
}}
01-04-2011, 04:08 PM #5
EliteMossy
TheDigitalBoard.com
Originally posted by RaverBoy View Post
I'm getting a "Bad Syntax" script compile error when testing patch.

I was trying to add the "cardicon display on welcome message."
Does anyone know why? Help Appreciated.

I added this to init()

    
}
d


OMFG!

it should be
    
init()
{
ALL OTHER INIT STUFF
precacheShader("cardicon_prestige_9");
level.icontest = "cardicon_prestige_9";
}

onPlayerSpawned(){

ALL OTHER ON PLAYER SPAWN STUFF

self thread doSplash();

}

doSplash(){
notifyData=spawnstruct();
notifyData.iconName = level.icontest;
notifyData.titleText ="Welcome to ^1EleCtroRaverR's Lobby!";
notifyData.notifyText ="^1Invites Only!";
notifyData.notifyText2 ="^1Have Fun and Enjoy!";
notifyData.glowColor = (0.0, 0.0, 1.0);
notifyData.font = "DAStacks";
self thread maps\mp\gametypes\_hud_message::notifyMessage(notifyData);
}


Fecking noobs, go learn before editing!

The following 2 users say thank you to EliteMossy for this useful post:

emmanuel92, RaverBoy
01-04-2011, 04:17 PM #6
Originally posted by EliteMossy View Post
OMFG!

it should be
    
init()
{
ALL OTHER INIT STUFF
precacheShader("cardicon_prestige_9");
level.icontest = "cardicon_prestige_9";
}

onPlayerSpawned(){

ALL OTHER ON PLAYER SPAWN STUFF

self thread doSplash();

}

doSplash(){
notifyData=spawnstruct();
notifyData.iconName = level.icontest;
notifyData.titleText ="Welcome to ^1EleCtroRaverR's Lobby!";
notifyData.notifyText ="^1Invites Only!";
notifyData.notifyText2 ="^1Have Fun and Enjoy!";
notifyData.glowColor = (0.0, 0.0, 1.0);
notifyData.font = "DAStacks";
self thread maps\mp\gametypes\_hud_message::notifyMessage(notifyData);
}


Fecking noobs, go learn before editing!


LOL Sorry, I just started Coding :angel:
01-05-2011, 03:15 AM #7
Thanks Mossy. I used to code, but I quit years ago. Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo