MyChat Scripts Engine: mGetRoleIDByName
Getting an identifier of a rights group by its name.
Syntax
function mGetRoleIDByName(sName: string): integer;
Parameters and return values
Parameter |
Type |
Value |
sName |
string |
rights group name. The letter case is important. |
Notice!
MyChat has two role names, which cannot be deleted or renamed. These are "Guests" and "WEB guests". New registered users are added to the first group, all those who come to MyChat from the website (WEB support chat) are added to the second group.
Function result
Numeric ID of a rights group. If a name does not exist, the function returns -1.