warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
funcidx
warning
This function starts with a lowercase letter.
Description
This function returns the ID of a public function by its name.
Name | Description |
---|---|
const name[] | The name of the public function to get the ID of. |
Returns
The ID of the function (IDs start at 0).
-1 if the function doesn't exist.
Examples
public OnFilterScriptInit()
{
printf("ID of OnFilterScriptInit: %d", funcidx("OnFilterScriptInit"));
return 1;
}
Related Functions
- CallLocalFunction: Call a function in the script.
- CallRemoteFunction: Call a function in any loaded script.