Click or drag to resize

VariableCollectionSet Method (String, Int32)

Sets and replaces the value of the variable with the specified varName with the specified value.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public void Set(
	string varName,
	int value
)

Parameters

varName
Type: SystemString
The variable name.
value
Type: SystemInt32
The value to store in the variable.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if varName is null.
ArgumentOutOfRangeExceptionThrown if varName is longer than the limit of 40.
See Also