Skip to content
ezeioDocs
  1. Reference
  2. Script reference
  3. Fields and registers

GetField/GetFieldFloat

Get the value of a field

Description#

GetField( fieldno )
Float:GetFieldFloat( fieldno )

Fetches the value of a field

Parameters#

fieldno Which field to fetch

Return value#

The value of the field. GetField will return the value rounded to the nearest integer.

Example usage#

   new x;
   new Float:f;
 
   x = GetField(4);
   f = GetFieldFloat(4);
 
   // x now holds the value of field 4, rounded to the nearest integer.   
   // f holds the value as a float.

Last updated Sep 16, 2020