Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting invalid or occupied player name is failing silently #387

Open
KirillBorunov opened this issue Nov 23, 2021 · 0 comments · May be fixed by #391
Open

Setting invalid or occupied player name is failing silently #387

KirillBorunov opened this issue Nov 23, 2021 · 0 comments · May be fixed by #391
Labels
area-GM-Players Issues related to players SampSharp.GameMode enhancement
Milestone

Comments

@KirillBorunov
Copy link
Contributor

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?

@ikkentim ikkentim added enhancement area-GM-Players Issues related to players SampSharp.GameMode labels Mar 25, 2022
@ikkentim ikkentim added this to the 0.11.0 milestone Mar 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-GM-Players Issues related to players SampSharp.GameMode enhancement
Projects
None yet
2 participants