GetCommandLineParam Function

Gets the value of a command line parameter the server was launched with.

void GetCommandLineParam(const char[] param, char[] value, int maxlen, const char[] defValue)


const char[] param

The command line parameter to get the value of.

char[] value

Buffer to store the parameter value in.

int maxlen

Maximum length of the value buffer.

const char[] defValue

The default value to return if the parameter wasn't specified.


No command line available, or no mod support.