View Single Post
psychonic

BAFFLED
Join Date: May 2008
Old 02-25-2018 , 10:17   Re: name[MAX_NAME_LENGTH]
Reply With Quote #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 is offline