GetCommandLineParam

Last Updated2016-05-20
Created At2014-10-21

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

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

Parameters

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.

Return Value

void

Error

No command line available, or no mod support.