http://www.amxmodx.org/funcwiki.php?go=module&id=16
Code:
enum {
//...
pev_float_start,
pev_impacttime,
pev_starttime,
pev_idealpitch,
pev_ideal_yaw,
pev_pitch_speed,
pev_yaw_speed,
pev_ltime,
pev_nextthink,
pev_gravity,
pev_friction,
pev_frame,
pev_animtime,
pev_framerate,
pev_scale,
pev_renderamt,
pev_health,
pev_frags,
pev_takedamage,
pev_max_health,
pev_teleport_time,
pev_armortype,
pev_armorvalue,
pev_dmg_take,
pev_dmg_save,
pev_dmg,
pev_dmgtime,
pev_speed,
pev_air_finished,
pev_pain_finished,
pev_radsuit_finished,
pev_maxspeed,
pev_fov,
pev_flFallVelocity,
pev_fuser1,
pev_fuser2,
pev_fuser3,
pev_fuser4,
pev_float_end,
//...
};
pev_frame is a float value, therefore the 3rd way is the only way you can use it:
Code:
new Float:frame;
pev(entity, pev_frame, frame);
Quote:
Originally Posted by hleV
What about :
Code:
static Float:Frame
Frame = pev(Entity, pev_frame)
|
pev() returns an integer value.
If you want a Float value from pev(), you must reference the variable.
__________________