GetServerVarAsInt
Description:
Function GetServerVarAsInt get the integer value of a server variable.
This function, as of 0.3.7 R2, is deprecated. Please see GetConsoleVarAsInt |
Type 'varlist' in the server console to display a list of available server variables and their types. |
Parameters:
(varname[])
string | varname | The name of the integer variable to get the value of. |
Return Values:
The value of the specified server variable. 0 if the specified server variable is not an integer or doesn't exist.
Examples:
new serverPort = GetServerVarAsInt("port"); printf("Server Port: %i", serverPort);
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- GetServerVarAsString: Retreive a server variable as a string.
- GetServerVarAsBool: Retreive a server variable as a boolean.