SampSharp
SampSharp copied to clipboard
Setting invalid or occupied player name is failing silently
If I do player.Name = "$^&*#аооплапо";
there is no exception and name is not changed.
On PAWN we get return code -1 meaning "The name can not be changed (it's already in use, too long or has invalid characters)"
I expected an exception here.
Is it by design? Can we fix it to throw an exception?