get_field_basetype

Синтаксис

stock BaseFieldType:get_field_basetype(FieldType:type, type_name[] = "", maxlen = 0)

Употреба

type
Class member type (FIELD_* constants)
type_name
Optional buffer to store base type name in
maxlen
Maximum size of the buffer

Описание

Returns the data field base type based off a specific field type.

Забележка

From an AMXX plugin perspective, the (C++/engine) data types can be grouped
in five base types: integer, float, vector, entity and string. This stock is
essentially for convenience and debug purpose.

Връщаща стойност

Base field type (BASEFIELD_* constants)