So I'm having this error :
Code:
L 03/13/2015 - 16:42:43: [ENGINE] Invalid entity 86
SOLVED!
Code:
public IceArrow_Think( ent ) {
if( !is_valid_ent( ent ) )
return PLUGIN_HANDLED;
new iVictim =entity_get_int( ent, EV_INT_iuser1 );
if( is_user_alive( iVictim ) ) {
entity_set_follow( ent, iVictim, float( ICE_ARROW_SPEED ) );
new Float: Velocity[ 3 ], Float:NewAngle[ 3 ];
entity_get_vector( ent, EV_VEC_velocity, Velocity );
vector_to_angle( Velocity, NewAngle );
entity_set_vector( ent, EV_VEC_angles, NewAngle );
}
else
remove_entity( ent );
<b><font color="Red">entity_set_float( ent, EV_FL_nextthink, get_gametime() + 0.1 );</font></b>
return PLUGIN_CONTINUE;
}