Numargs
From SA-MP Wiki
Revision as of 16:12, 26 April 2014; view current revision
←Older revision | Newer revision→
←Older revision | Newer revision→
[edit]
numargs
Note: This function name starts with a lowercase letter. |
Description:
Get the number of arguments passed to a function.
This function has no parameters
Return Values:
The number of arguments passed.
Example Usage:
SomeFunction(...) { printf("numargs(): %i", numargs()); } public OnFilterScriptInit() { SomeFunction(1, 2, 3); } // Output: "numargs(): 3" // Because 3 parameters (1, 2, 3) were passed.
[edit]
Related Functions
The following functions may be useful, as they are related to this function in one way or another.