getarg

warning

This function starts with lowercase letter.

Description

Get an argument that was passed to a function.

NameDescription
argThe argument sequence number. Use 0 for first argument.
indexThe index (in case the argument is an array).

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.

Related Functions