SampSharp icon indicating copy to clipboard operation
SampSharp copied to clipboard

Setting invalid or occupied player name is failing silently

Open KirillBorunov opened this issue 3 years ago • 0 comments

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?

KirillBorunov avatar Nov 23 '21 09:11 KirillBorunov