Raised This Month: $ Target: $400
 0% 

Control characters


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 07-06-2016 , 02:13   Control characters
Reply With Quote #1

Other than \0 which is the null terminator, can the use of control characters in strings cause weirdness with Sourcemod itself?

My plugin deals with player names, and I need at least 1, preferably 2, characters which cannot be used in a player's name.

My tests show that BEL (\7) works fine for my purposes... but is this a bad idea?
__________________

Last edited by ddhoward; 07-06-2016 at 02:14.
ddhoward is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 07-06-2016 , 13:40   Re: Control characters
Reply With Quote #2

the low numbers indicate chat colors in several games

Last edited by Miu; 07-06-2016 at 13:40.
Miu is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 07-06-2016 , 15:34   Re: Control characters
Reply With Quote #3

Very true! I'm going to move forward with this then; none of these strings will be printed to the chat or anywhere else, so that shouldn't be an issue.
__________________
ddhoward 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 11:32.


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