Chuyển tới nội dung chính

IsValidServerRule

cảnh báo

Đã thêm hàm trong phiên bản omp v1.1.0.2612. Mục này không hoạt động trên các phiên bản cũ hơn!

Description​

Checks if the given server rule is valid.

NameDescription
const rule[]The server rule name to check.

Returns​

Returns true if the server rule is valid, otherwise false.

Examples​

if (IsValidServerRule("version"))
{
// Server rule is valid
}
else
{
// Server rule is not valid
}