MyChat Scripts Engine: mGetMaxRegisteredUIN, get UIN of the latest registered user
The maximum unique identifier (UIN) of the last registered user on the server.
Syntax
function mGetMaxRegisteredUIN: integer;
Function result
Maximum UIN of the user (unique integer number > 0), who is registered on the server. MyChat UIN identifiers are given increasingly and never repeat. If the user is deleted, his UIN will not be taken by the newly registered user.
Example
var
iMaxUIN: integer;
begin
iMaxUIN := mGetMaxRegisteredUIN;
mLogScript('Max registered UIN : ' + inttostr(iMaxUIN), '');
mLogScript(' Nickname : ' + mGetUserAttribute(iMaxUIN, 'InternalNickName'), '');
mLogScript(' Role : ' + mGetUserRoleName(iMaxUIN), '');
mLogScript(' Email : ' + mGetUserAttribute(iMaxUIN, 'Email'), '');
end.
Script work result
[17:51:27] (Log "mGetMaxRegisteredUIN"): Max registered UIN : 15868
[17:51:27] (Log "mGetMaxRegisteredUIN"): Nickname : JohnSmith
[17:51:27] (Log "mGetMaxRegisteredUIN"): Role : WEB guests
[17:51:27] (Log "mGetMaxRegisteredUIN"): Email : john@mail.com
See also
Created with the Personal Edition of HelpNDoc: Effortlessly optimize your documentation website for search engines