Thread
:
name[MAX_NAME_LENGTH]
View Single Post
emsit
Member
Join Date: Apr 2015
02-25-2018 , 14:05 Re: name[MAX_NAME_LENGTH]
#
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
View Public Profile
Send a private message to emsit
Find More Posts by emsit