Thread
:
name[MAX_NAME_LENGTH]
View Single Post
psychonic
BAFFLED
Join Date: May 2008
02-25-2018 , 10:17 Re: name[MAX_NAME_LENGTH]
#
5
What game are you testing it?
In CS:GO, MAX_PLAYER_NAME_LENGTH in the engine is 128 bytes. However, in all other supported games, it's 32 bytes, which can even causes truncation in the engine itself, before SourceMod gets the name. (It looks like your test plugin is for L4D2).
That said, I don't remember if there's any good reason why we didn't increase SM's MAX_NAME_LENGTH to 128, to match CS:GO.
psychonic
View Public Profile
Send a private message to psychonic
Visit psychonic's homepage!
Find More Posts by psychonic