GetAdminGroup Function

Returns group information from an admin.

GroupId GetAdminGroup(AdminId id, int index, const char[] name, int maxlength)

Parameters

AdminId id

AdminId index of the admin.

int index

Group number to retrieve, from 0 to N-1, where N is the value of GetAdminGroupCount(id).

const char[] name

Buffer to store the group's name. Note: This will safely chop UTF-8 strings.

int maxlength

Maximum size of the output name buffer.

Return Value

A GroupId index and a name pointer, or INVALID_GROUP_ID and NULL if an error occurred.