GetCommandLineParamInt

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

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

native int GetCommandLineParamInt(const char[] param, int defValue = 0)

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

int The integer value of the command line parameter value.

Error

No command line available, or no mod support.