22.01.2014, 21:29
I am expiriencing a client bug (I think) with SetPlayerName.
In my gamemode names must be RP, so I check that Name_Surname format is used.
After that I set playername to New_Name[id] exampe: New_Name115
And after that the realname example: John_Doe.
I set the name twice because SetPlayerName does not allow name changes if only a letter is changed from lowercase to uppercase and the other way around.
The problem that I am expiriencing is that:
Playerid 0 joins the game like this -> joHN_dOe
In console I clearly see the changes of names.
When you press tab, the new name is shown as it should (John_Doe) (due to my script changes).
Player 1 joins the game like this -> tESt_nIcK
In console I clearly see the changes of names.
When you press tab as playerid 0 , both names are fine (John_Doe and Test_Nick).
When you press tab as playerid 1, he sees his old nick (tESt_nIcK , not Test_Nick), BUT in the console it clearly SAYS that the nick was changed to New_Name1, then Test_Nick.
In my gamemode names must be RP, so I check that Name_Surname format is used.
After that I set playername to New_Name[id] exampe: New_Name115
And after that the realname example: John_Doe.
I set the name twice because SetPlayerName does not allow name changes if only a letter is changed from lowercase to uppercase and the other way around.
The problem that I am expiriencing is that:
Playerid 0 joins the game like this -> joHN_dOe
In console I clearly see the changes of names.
When you press tab, the new name is shown as it should (John_Doe) (due to my script changes).
Player 1 joins the game like this -> tESt_nIcK
In console I clearly see the changes of names.
When you press tab as playerid 0 , both names are fine (John_Doe and Test_Nick).
When you press tab as playerid 1, he sees his old nick (tESt_nIcK , not Test_Nick), BUT in the console it clearly SAYS that the nick was changed to New_Name1, then Test_Nick.