Funcidx

From SA-MP Wiki

Jump to: navigation, search

funcidx

Image:Farm-Fresh text lowercase.png Note: This function name starts with a lowercase letter.


Description:

This function returns the ID of a public function by its name.


Parameters:
(const name[])
const name[]The name of the public function to get the ID of.


Return Values:

The ID of the function (IDs start at 0). -1 if the function doesn't exist.


Example Usage:

public OnFilterScriptInit()
{
    printf("ID of OnFilterScriptInit: %d", funcidx("OnFilterScriptInit"));
    return 1;
}

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

Personal tools
Navigation
Toolbox