Skip to main content

numargs

warning

This function starts with a lowercase letter.

Description

Get the number of arguments passed to a function.

Examples

SomeFunction(...)
{
printf("numargs(): %i", numargs());
}

public OnFilterScriptInit()
{
SomeFunction(1, 2, 3);
}

// Output: "numargs(): 3"
// Because 3 parameters (1, 2, 3) were passed.
  • getarg: Retrieve an argument from a variable argument list.
  • setarg: Set an argument.