Click or drag to resize

VariableCollectionGetFloat Method

Gets a floating-point value of the variable with the specified varName.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-local+709673996c0cc3c0733358a87691d1009326afa7
Syntax
C#
public float GetFloat(
	string varName
)

Parameters

varName
Type: SystemString
The name of the variable to get.

Return Value

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