GetCmdArgIntEx Function

Retrieves a numeric command argument given its index, from the current console or server command. Returns false if the argument can not be completely parsed as an integer.

bool GetCmdArgIntEx(int argnum, int& value)

Parameters

int argnum

Argument number to retrieve.

int& value

Populated with the value of the command argument.

Return Value

Whether the argument was entirely a numeric value.