GetAdminUsername Function

Retrieves an admin's user name as made with CreateAdmin().

int GetAdminUsername(AdminId id, char[] name, int maxlength)


AdminId id

AdminId of the admin.

char[] name

String buffer to store name.

int maxlength

Maximum size of string buffer.

Return Value

Number of bytes written.


This function can return UTF-8 strings, and will safely chop UTF-8 strings.