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

[CS:GO] Sql cancelling colours?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Pyro_
Senior Member
Join Date: Oct 2013
Old 11-09-2013 , 00:06   [CS:GO] Sql cancelling colours?
Reply With Quote #1

I have a database that has a message stored in it. And in the message are colours (\x01, \x02, etc.) however, when I print the string from the database. It outputs the colour codes, not the actual colours!

How do I fix this?
Pyro_ is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 11-09-2013 , 00:36   Re: [CS:GO] Sql cancelling colours?
Reply With Quote #2

Yay.. i have the same issue.. any fix?
__________________
If i happen to insulted you unintentionally,
it was me and Google Translate who did it.
GsiX is offline
miniman
Senior Member
Join Date: Aug 2009
Location: Israel
Old 11-09-2013 , 09:22   Re: [CS:GO] Sql cancelling colours?
Reply With Quote #3

it happens because \x01 isn't a string its a hex aka a single byte of '01' what you can do is create a parser that replaces that \x01 with a byte of '01'
miniman is offline
wanted2411
Senior Member
Join Date: Jun 2012
Old 11-09-2013 , 10:10   Re: [CS:GO] Sql cancelling colours?
Reply With Quote #4

Maybe you can try to use {green} and other codes and then replace it with their original codes. (like \x01...)
wanted2411 is offline
Pyro_
Senior Member
Join Date: Oct 2013
Old 11-09-2013 , 23:55   Re: [CS:GO] Sql cancelling colours?
Reply With Quote #5

Quote:
Originally Posted by miniman View Post
it happens because \x01 isn't a string its a hex aka a single byte of '01' what you can do is create a parser that replaces that \x01 with a byte of '01'
How exactly do I do this? I googled it, but nothing came up D:
Pyro_ is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 11-10-2013 , 02:34   Re: [CS:GO] Sql cancelling colours?
Reply With Quote #6

wanted2411 talking about morecolor.inc
__________________
If i happen to insulted you unintentionally,
it was me and Google Translate who did it.

Last edited by GsiX; 11-10-2013 at 02:36.
GsiX is offline
Pyro_
Senior Member
Join Date: Oct 2013
Old 11-10-2013 , 03:07   Re: [CS:GO] Sql cancelling colours?
Reply With Quote #7

Quote:
Originally Posted by GsiX View Post
wanted2411 talking about morecolor.inc
No... He is talking about doing what morecolor does.
Pyro_ 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 03:41.


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