Raised This Month: $ Target: $400
 0% 

name[MAX_NAME_LENGTH]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
emsit
Member
Join Date: Apr 2015
Old 02-25-2018 , 14:05   Re: name[MAX_NAME_LENGTH]
Reply With Quote #6

Hi, my plugin is for L4D2.
I tested it, when I changed my name through "SetClientInfo (client, "name", name);" the name was shortened to 32bytes. So setting the variable to 128bytes will not solve my problem.
The only solution is to check the player name and remove the last invalid UTF-8 char. It's a shame that it sourcemod does not do it automatically.
__________________


Last edited by emsit; 02-25-2018 at 14:05.
emsit 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 23:11.


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