OK. I saw a lot of threads with this subject, and many of them have been already discused.
And for that, i've mad this thread to clear things up once for all.
Engine - FM
PHP Code:
entity_set_* - set_pev
entity_get_* - pev
From 'engine_to_fm_const.inc'
Code:
// Int done
#define EV_INT pev
// Floats done
#define EV_FL pev
//Vectors done
#define EV_VEC pev
// EDICT done
#define EV_ENT pev
// Strings done
#define EV_SZ pev
// Bytes done
#define EV_BYTE pev
So, as you can see, all of them (strings, floats, vectors,...) come more simplistic as 'pev'.
Al values for 'pev' are floats, expect strings.
Examples:
PHP Code:
// engine
entity_set_float( ent, EV_FL_health, 50.0 );
// fakemeta
set_pev( ent, pev_health, 50.0 );
/* or
new Float: fHealth = 50.0;
set_pev( ent, pev_health, fHealth );
*/
// engine
new classname[ 32 ];
entity_get_string( ent, EV_SZ_classname, classname, 31);
// fakemeta
new classname[ 32 ];
pev( ent, pev_classname, classname, 31 );
Also, you can see the .inc bellow