Click or drag to resize

VariableCollectionGetString Method

Gets a string value of the variable with the specified varName.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public string GetString(
	string varName,
	int length = 1024
)

Parameters

varName
Type: SystemString
The name of the variable to get.
length (Optional)
Type: SystemInt32
The maximum length of the string value.

Return Value

Type: String
The value of the variable or 0 if the variable does not exist.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if varName is null.
See Also