08.07.2015, 11:01
I was thinking of a new feature while reading this thread: http://forum.sa-mp.com/showthread.ph...09#post3513809
pawn Код:
enum
{
FIELD_TYPE_INT, // int, tinyint, etc.
FIELD_TYPE_ARRAY, // varchar, text, etc.
FIELD_TYPE_FLOAT, // float, double
}
#define FIELD_TYPE_STRING FIELD_TYPE_ARRAY
native cache_get_field_type(field_index, connectionHandle = 1);
native cache_get_field_name_type(const field_name[], connectionHandle = 1); // should be renamed, I couldn't think of a better name
