Raised This Month: $ Target: $400
 0% 

[SOLVED] How to add colorchat to this ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-05-2011 , 01:17   Re: [HELP] How to add colorchat to this ?
Reply With Quote #4

Quote:
Originally Posted by T-z3P View Post
I know Connor's stock . I've tried this and it's not working (spaces appear in front of the 'last' word and after ':' and there is no color in the message) :
PHP Code:
+= formatex(LastMaps[n], 255-n"^x04Last maps played are :^x03"
PS : I don't really know how to use the stock here .
Sometimes, color codes can be broken with text that is following the end of it because it is combined to the color code so it turns into something other than a color code.
To fix this, you can insert it as a character by formatting instead of including it in the string.

Example:
Code:
formatex(string, charsmax(string), "%cThis is green%c and this is normal.", '^x04', '^x03');
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 14:29.


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