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

[CSGO] Issue with colours and hinttext


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EvanChrispie
Member
Join Date: Nov 2016
Old 04-20-2018 , 09:05   [CSGO] Issue with colours and hinttext
Reply With Quote #1

I am using cksurf and am trying to make the centre timer text coloured, but only so the names are coloured (PB, SR, stages etc.) Everything works fine, except for the third line with the Stage and Speed on it, if I make both of these coloured then Speed doesn't show on the timer at all, so I can only make 1 coloured for them both to show. And if I make the font smaller the Speed doesn't show, but it shows when the font is larger. How can I get both to show as coloured?

Code:
PrintHintText(client, "<font face=''><font size='20.2'>%s\t\t<font color='#42a1f4'>Rank: </font>%s\n<font color='#4268f4'>PB: </font>%s\t<font color='#FFD700'>SR: </font>%s\n<font color='#f44245'>Stage: </font>%s<font color='#f44245'>Speed:</font> %i u/s</font>", sTime, sRank, sPBest, sSRec, sStage, RoundToNearest(g_fLastSpeed[client]));
When only one is coloured:
Spoiler


When both are coloured:
Spoiler
__________________
EvanChrispie is offline
hmmmmm
Great Tester of Whatever
Join Date: Mar 2017
Location: ...
Old 04-20-2018 , 09:32   Re: [CSGO] Issue with colours and hinttext
Reply With Quote #2

You might be hitting the character limit for the hint text (which includes the formatting text). From memory I think that limit is 255 characters + 1 for null char.

In the past I had also hit this limit and managed to get around it by being a bit creative and avoiding writing excessive closing tags like </font>

Last edited by hmmmmm; 04-20-2018 at 09:34.
hmmmmm 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 01:02.


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