GetCommandLineParamFloat Function

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

float GetCommandLineParamFloat(const char[] param, float defValue)

Parameters

const char[] param

The command line parameter to get the value of.

float defValue

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

Return Value

The floating point value of the command line parameter value.

Errors

No command line available, or no mod support.