06.05.2013, 19:54
Show the declaration ('new') for 'str'. You should also use sizeof() so if you change the string's array size, you won't have to change it in format() also. Also, SendClientMessage is limited to 144 characters, not 128. 128 is chat input. A lot of people don't know this.
EDIT: The problem looks like it's with GetPlayerNameEx.
EDIT: The problem looks like it's with GetPlayerNameEx.