GetCommandLineParamInt Function

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

int GetCommandLineParamInt(const char[] param, int defValue)

Parameters

const char[] param

The command line parameter to get the value of.

int defValue

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

Return Value

The integer value of the command line parameter value.

Errors

No command line available, or no mod support.