Hi there, im making a VIP parachute plugin and i get error when i converted the plugin to FM. Please help, thnx in advance.
Code:
#define entity_get_float(%1,%2,%3) pev(%1, %2, %3)
#define entity_set_float(%1,%2,%3) set_pev(%1, %2, %3)
if (para_ent[id] > 0)
{
velocity[2] = (velocity[2] + 40.0 < -100) ? velocity[2] + 40.0 : -100.0
entity_set_vector(id, pev_velocity, velocity)
if (entity_get_float(para_ent[id], pev_frame) < 0.0 || entity_get_float(para_ent[id], pev_frame) > 254.0)
{
if (entity_get_int(para_ent[id], pev_sequence) != 1)
{
entity_set_int(para_ent[id], pev_sequence, 1)
}
entity_set_float(para_ent[id], pev_frame, 0.0)
}
else
{
entity_set_float(para_ent[id], pev_frame, entity_get_float(para_ent[id], pev_frame) + 1.0)
}
}
The engine code was
Code:
if (para_ent[id] > 0)
{
velocity[2] = (velocity[2] + 40.0 < -100) ? velocity[2] + 40.0 : -100.0
entity_set_vector(id, EV_VEC_velocity, velocity)
if (entity_get_float(para_ent[id], EV_FL_frame) < 0.0 || entity_get_float(para_ent[id], EV_FL_frame) > 254.0)
{
if (entity_get_int(para_ent[id], EV_INT_sequence) != 1)
{
entity_set_int(para_ent[id], EV_INT_sequence, 1)
}
entity_set_float(para_ent[id], EV_FL_frame, 0.0)
}
else
{
entity_set_float(para_ent[id], EV_FL_frame, entity_get_float(para_ent[id], EV_FL_frame) + 1.0)
}
}
The error is
Code:
Error: Undefined symbol "entity_get_float" on line 229
Error: Undefined symbol "entity_get_float" on line 239
__________________