Post: Would ^11 cause a Bad Syntax?
01-05-2011, 12:03 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Would this cause a bad syntax because it's looking for colour 11?

I'm getting a bad syntax because of this ... :(

    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("[COLOR="Red"]^11[/COLOR]: SPEAK ENGLISH ONLY!");
wait 4;
AdvertText setText("[COLOR="red"]^12[/COLOR]: DO NOT BOTHER "+level.hostis " IN ANYWAY!");
wait 4;
AdvertText setText("[COLOR="red"]^13[/COLOR]: IF YOUR KICKED, DO NOT COME BACK!");
wait 4;
AdvertText setText("^1BREAK ANY RULE AND YOU WILL BE DERANKED!");
wait 4;
AdvertText destroy();
}


I want it to list the rules ...

1: Rule 1
2: Rule 2
3: Rule 3
(adsbygoogle = window.adsbygoogle || []).push({});
01-05-2011, 12:24 AM #2
FrOoTLoOpZ
Got MILK?
no i dont think so it would just make it the first # color
01-05-2011, 12:43 AM #3
What about

    
:


For some reason this block is causing a Bad Syntax and I have NO IDEA WHY :(

---------- Post added at 07:37 PM ---------- Previous post was at 07:28 PM ----------

    AdvertText setText("^1Rules:");
wait 5;
AdvertText setText("^11: SPEAK ENGLISH ONLY!");
wait 5;
AdvertText setText("^12: DO NOT BOTHER "+level.hostis" IN ANYWAY!");
wait 5;
AdvertText setText("^13: IF YOUR KICKED, DO NOT COME BACK!");
wait 5;
AdvertText setText("^1BREAK ANY RULE AND YOU WILL BE DERANKED!");
wait 5;


UGH!!! Its something specific to these lines, and even more specific, the text inside the ""

---------- Post added at 07:43 PM ---------- Previous post was at 07:37 PM ----------

And the problem is specific to:

    
AdvertText setText("^12: DO NOT BOTHER "+level.hostis" IN ANYWAY!");


Anyone know why?
01-05-2011, 12:58 AM #4
FrOoTLoOpZ
Got MILK?
Originally posted by level42 View Post
What about

    
:


For some reason this block is causing a Bad Syntax and I have NO IDEA WHY :(

---------- Post added at 07:37 PM ---------- Previous post was at 07:28 PM ----------

    AdvertText setText("^1Rules:");
wait 5;
AdvertText setText("^11: SPEAK ENGLISH ONLY!");
wait 5;
AdvertText setText("^12: DO NOT BOTHER "+level.hostis" IN ANYWAY!");
wait 5;
AdvertText setText("^13: IF YOUR KICKED, DO NOT COME BACK!");
wait 5;
AdvertText setText("^1BREAK ANY RULE AND YOU WILL BE DERANKED!");
wait 5;


UGH!!! Its something specific to these lines, and even more specific, the text inside the ""

---------- Post added at 07:43 PM ---------- Previous post was at 07:37 PM ----------

And the problem is specific to:

    
AdvertText setText("^12: DO NOT BOTHER "+level.hostis" IN ANYWAY!");


Anyone know why?


I think instead of "+level.hostis" it should be "+level.host+" idk it of the top of my head through but im prety sure thats the host name code or just add a + to the end xD that should be the only error in that line

The following user thanked FrOoTLoOpZ for this useful post:

x3D
01-05-2011, 01:11 AM #5
Merkii
Former Staff
its ^11 its an unrecognised function :carling:
01-05-2011, 01:40 AM #6
FrOoTLoOpZ
Got MILK?
lol he said the problem was specific to one line
01-05-2011, 02:13 AM #7
XtreJD
Haxor!
Originally posted by level42 View Post
What about

    
:


For some reason this block is causing a Bad Syntax and I have NO IDEA WHY :(

---------- Post added at 07:37 PM ---------- Previous post was at 07:28 PM ----------

    AdvertText setText("^1Rules:");
wait 5;
AdvertText setText("^11: SPEAK ENGLISH ONLY!");
wait 5;
AdvertText setText("^12: DO NOT BOTHER "+level.hostis" IN ANYWAY!");
wait 5;
AdvertText setText("^13: IF YOUR KICKED, DO NOT COME BACK!");
wait 5;
AdvertText setText("^1BREAK ANY RULE AND YOU WILL BE DERANKED!");
wait 5;


UGH!!! Its something specific to these lines, and even more specific, the text inside the ""

---------- Post added at 07:43 PM ---------- Previous post was at 07:37 PM ----------

And the problem is specific to:

    
AdvertText setText("^12: DO NOT BOTHER "+level.hostis" IN ANYWAY!");


Anyone know why?


Try this:

AdvertText setText("^12: DO NOT BOTHER "+level.hostis+" IN ANYWAY!");

you need another +
01-05-2011, 02:23 AM #8
Merkii
Former Staff
why dont you just try not use ^12?
01-05-2011, 04:41 AM #9
^11, has no problems, I will try the extra + tommorow, thanks !
01-06-2011, 10:39 PM #10
delagious
Do a barrel roll!
Originally posted by FrOoTLoOpZ View Post
I think instead of "+level.hostis" it should be "+level.host+" idk it of the top of my head through but im prety sure thats the host name code or just add a + to the end xD that should be the only error in that line


once again Mr.LoOpZ is here to save the day Dancing

The following user thanked delagious for this useful post:

FrOoTLoOpZ

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo