ezeio2:scriptref:getfield

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.
  • ezeio2/scriptref/getfield.txt
  • Last modified: 2020-09-16 23:17
  • by andreh