GetFunctionByName Function

Gets a function id from a function name.

function GetFunctionByName(Handle plugin, const char[] name)

Parameters

Handle plugin

Handle of the plugin that contains the function. Pass INVALID_HANDLE to search in the calling plugin.

const char[] name

Name of the function.

Return Value

Function id or INVALID_FUNCTION if not found.

Errors

Invalid or corrupt plugin handle.