Raised This Month: $ Target: $400
 0% 

[INC] Colors (1.0.5)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DieterM75
Senior Member
Join Date: Aug 2009
Old 02-11-2010 , 14:46   Re: [INC] Colors (1.0.2)
Reply With Quote #11

PrintToChat(client,"\x04[VIP-Message] \x03%s\x01: \x03%s", name, text[startidx+1]);

this should print blue text on the %s if i am ct, but it does not.
colors.inc doesnt format anything just repeats the text

#include <colors>
...
CPrintToChatAll("{GREEN}[VIP-Message]{TEAMCOLOR}%s{DEFAULT}:{TEAMCOLOR}%s",name,te xt);


//EDIT: this works like a charm...

stock SayText2All(author, const String:message[])
{
new Handle:buffer = StartMessageAll("SayText2");
if ( buffer != INVALID_HANDLE )
{
BfWriteByte(buffer, author);
BfWriteByte(buffer, true);
BfWriteString(buffer, message);
EndMessage();
}
}

Last edited by DieterM75; 02-11-2010 at 15:31.
DieterM75 is offline
 



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 22:56.


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