Setarg

From SA-MP Wiki

Jump to: navigation, search

setarg

Image:Farm-Fresh text lowercase.png Note: This function name starts with a lowercase letter.


Description:

Set an argument that was passed to a function.


Parameters:
(arg, index=0, value)
argThe argument sequence number. Use 0 for the first argument.
indexThe index (if the argument is an array).
valueThe value to set the argument to.


Related Functions

The following functions may be useful, as they are related to this function in one way or another.

  • getarg: Retrieve an argument from a variable argument list.
  • numargs: Return the number of arguments.
Personal tools
Navigation
Toolbox