Retrieves a command argument given its index, from the current console or server command.
int GetCmdArg(int argnum, char buffer, int maxlength)
Argument number to retrieve.
Buffer to use for storing the string.
Maximum length of the buffer.
Length of string written to buffer.
Argument indexes start at 1; 0 retrieves the command name.