ข้ามไปยังเนื้อหาหลัก

IsValidNickName

คำเตือน

ฟังก์ชันนี้ถูกเพิ่มใน omp v1.1.0.2612 และจะไม่ทำงานในเวอร์ชันก่อนหน้า!

Description​

Checks if a nick name is valid.

NameDescription
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​

หมายเหตุ

By default the valid characters in the nick name is (0-9, a-z, A-Z, [], (), $ @ . _ and = only).