GetUserMessageId Function

Returns the ID of a given message, or -1 on failure.

UserMsg GetUserMessageId(const char[] msg)

Parameters

const char[] msg

String containing message name (case sensitive).

Return Value

A message index, or INVALID_MESSAGE_ID on failure.