Raised This Month: $51 Target: $400
 12% 

[INC] Colors (1.0.5)


Post New Thread Reply   
 
Thread Tools Display Modes
psychonic

BAFFLED
Join Date: May 2008
Old 08-22-2009 , 10:06   Re: [INC] Colors (1.0.1)
Reply With Quote #31

Quote:
Originally Posted by olj View Post
Ok, i got it, thanx, no need for double posts
Whoops . Not sure how that happened. They were a whole 2 hours apart.
psychonic is offline
olj
Veteran Member
Join Date: Jun 2009
Old 08-22-2009 , 17:35   Re: [INC] Colors (1.0.1)
Reply With Quote #32

Delayed forum glitch?
__________________
olj is offline
nicatronTg
Member
Join Date: Jun 2009
Old 08-31-2009 , 19:42   Re: [INC] Colors (1.0.1)
Reply With Quote #33

I'm not sure what's happening, but for some reason colors aren't working in any plugins that use this extension. On most plugins, the {green} tag just shows up as plaintext, as well as all other colors.

I just wrote a quick plugin, and {green} is parsed but it's not actually green.

I'm using the latest stable release of Sourcemod, with HL2DM.
__________________
nicatronTg is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 09-02-2009 , 06:08   Re: [INC] Colors (1.0.1)
Reply With Quote #34

Quote:
Originally Posted by nicatronTg View Post
I'm not sure what's happening, but for some reason colors aren't working in any plugins that use this extension. On most plugins, the {green} tag just shows up as plaintext, as well as all other colors.

I just wrote a quick plugin, and {green} is parsed but it's not actually green.

I'm using the latest stable release of Sourcemod, with HL2DM.
Well, it works for others. I guess you're doing something completely wrong. Can you write an example of how do you use it?
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
nicatronTg
Member
Join Date: Jun 2009
Old 09-03-2009 , 20:51   Re: [INC] Colors (1.0.1)
Reply With Quote #35

CPrintToChatAll("{green}[SM] {default}test.");
__________________
nicatronTg is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 09-04-2009 , 11:42   Re: [INC] Colors (1.0.1)
Reply With Quote #36

Just tested it in HL2:MP, SM 1.2.3. This works for me:

PHP Code:
#include <sourcemod>
#include <colors>

public OnPluginStart()
{
    
RegConsoleCmd("clr_print"Command_ClrPrint);
}

public 
Action:Command_ClrPrint(clientargs)
{
    
CPrintToChatAll("{green}[SM] {default}test.");
    return 
Plugin_Handled;

Have you placed colors.inc into scripting/include folder and added "#include <colors>" in the beginning of the code?
Attached Thumbnails
Click image for larger version

Name:	dm_lockdown0000.jpg
Views:	361
Size:	6.7 KB
ID:	49030  
__________________
For admins: My plugins

For developers: Colors library

Last edited by exvel; 09-04-2009 at 11:49.
exvel is offline
Send a message via ICQ to exvel
nicatronTg
Member
Join Date: Jun 2009
Old 09-04-2009 , 18:04   Re: [INC] Colors (1.0.1)
Reply With Quote #37

I'll run a test, I'll edit back when done.

Edit: Works like a charm now . Turns out I forgot the closing > on the include definition, I'll bet that was it. Great work mate, I really like this. It adds simple color to chat.
__________________

Last edited by nicatronTg; 09-04-2009 at 18:16.
nicatronTg is offline
DontWannaName
Veteran Member
Join Date: Jun 2007
Location: VALVe Land, WA
Old 09-04-2009 , 21:29   Re: [INC] Colors (1.0.1)
Reply With Quote #38

Now only if we could get yellow to work without someone findning something.
__________________

DontWannaName is offline
nicatronTg
Member
Join Date: Jun 2009
Old 09-04-2009 , 23:30   Re: [INC] Colors (1.0.1)
Reply With Quote #39

I'd like to add that if your adding colors to a mod and alt-tabbing back ingame once you compile it, you need to rejoin the server in order to see the newly parsed colors.
__________________
nicatronTg is offline
VideoMaster
Junior Member
Join Date: May 2009
Old 09-09-2009 , 13:33   Re: [INC] Colors (1.0.1)
Reply With Quote #40

Anyone figure out how to do yellow in TF2 yet?
VideoMaster is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode