GetCmdArgInt Function

Retrieves a numeric command argument given its index, from the current console or server command. Will return 0 if the argument can not be parsed as a number. Use GetCmdArgIntEx to handle that explicitly.

int GetCmdArgInt(int argnum)

Parameters

int argnum

Argument number to retrieve.

Return Value

Value of the command argument.