openmultiplayer / openmultiplayer/open.mp

[BEHAVIOUR DIFFERENCE] Client don't get any messages when you enter an invalid nickname

Open
#738 2 comments 0 reactions 1 assignee View on GitHub

@AmyrAhmady is already working on this.

Since Oct 12, 2023.

bug nightly
Dominant language
C++
Stars
641
Forks
208
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
On open.mp you don't get any messages telling you that the chosen nickname isn't valid. This happens either if you use unacceptable characters or if you enter the same nickname of an already online player. You only get the "Server closed connection" message.

To Reproduce
Steps to reproduce the behavior:

  1. Choose a nickname with an unacceptable character or enter the same nickname of another already online player
  2. Connect to the server

Expected behavior
This is what it should happen.

{FFFFFF}SA-MP {B9C9BF}0.3.7-R5 {FFFFFF}Started

Connecting to 46.105.43.212:8888...

Connected. Joining the game...

CONNECTION REJECTED: Unacceptable NickName

Please choose another nick between and 3-20 characters

Please use only a-z, A-Z, 0-9

Use /quit to exit or press ESC and select Quit Game

Screenshots and/or logs
SA:MP behaviour:

sa-mp-005

open.mp behaviour:

sa-mp-006

Commit hash in master
(https://github.com/openmultiplayer/open.mp/commit/441a63a74712003d8a3c05745cc30c93f07922ff)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.