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.
getarg
warning
This function starts with a lowercase letter.
Description
Get an argument that was passed to a function.
Name | Description |
---|---|
arg | The argument sequence number. Use 0 for first argument. |
index | The index (in case the argument is an array) (optional=0) |
Returns
The value of the argument.
Examples
SomeFunc(...)
{
printf("%i", getarg(3));
}
public OnFilterScriptInit()
{
SomeFunc(1, 3, 3, 7);
}
// Output: 7. The fourth argument (index 3) is 7.