GetCommandLineParamFloat

Last Updated2014-10-21
Created At2014-10-21

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

native float GetCommandLineParamFloat(const char[] param, float defValue = 0.000000)

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

float The floating point value of the command line parameter value.

Error

No command line available, or no mod support.