warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
IsValidNickName
warning
This function was added in omp v1.1.0.2612 and will not work in earlier versions!
Description
Checks if a nick name is valid.
Name | Description |
---|---|
const name[] | The nick name to check. |
Returns
Returns true if the nick name is valid, otherwise false.
Examples
if (IsValidNickName("Barnaby_Keene"))
{
// Do something
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "Your nick name is not valid.");
}
Notes
tip
By default the valid characters in the nick name is (0-9, a-z, A-Z, [], (), \$ @ . _ and = only).
Related Functions
- AllowNickNameCharacter: Allows a character to be used in the nick name.
- SetPlayerName: Sets the name of a player.
- GetPlayerName: Gets the name of a player.