GetClientName Function

Returns the client's name.

bool GetClientName(int client, char[] name, int maxlen)

Parameters

int client

Player index.

char[] name

Buffer to store the client's name.

int maxlen

Maximum length of string buffer (includes NULL terminator).

Return Value

True on success, false otherwise.

Errors

If the client is not connected an error will be thrown.