IServerServiceGetConsoleVarAsString Method |
Gets the string value of a console variable.
Namespace:
SampSharp.Entities.SAMP
Assembly:
SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax string GetConsoleVarAsString(
string variableName
)
Parameters
- variableName
- Type: SystemString
The name of the variable.
Return Value
Type:
StringThe value of the specified console variable.
Remarks
Using this function with anything other than a string (integer, boolean or float) will cause your server to
crash. Using it with a nonexistent console variable will also cause your server to crash.
See Also