It's an old plugin, but it's converted and some thing like that. It works, but generates this log. Log is huge and up to 5Mb, so I would like to ask, where is the ploblem?
Code:
L 04/01/2006 - 10:39:44: [AMXX] [0] snipers.sma::check_movement (line 86)
L 04/01/2006 - 10:39:44: [ENGINE] Invalid player 1 (not in-game)
L 04/01/2006 - 10:39:44: [AMXX] Displaying debug trace (plugin "snipers.amxx")
L 04/01/2006 - 10:39:44: [AMXX] Run time error 10: native error (native "entity_get_int")
Here is the part from line 79 to 96:
Code:
public check_movement(playerid[])
{ /* tikriname žaidėjų judėjimą */
new id = playerid[0]
/* new Float:vector[3]
entity_get_vector(id, EV_VEC_velocity, vector)
FVecIVec(vector, velocityI) */
new flags = entity_get_int(id, EV_INT_flags)
if (!(flags & FL_ONGROUND))
{ /* jei ore, nuimame skopą */
client_cmd(id,"lastinv;lastinv")
unscope_func(id)
return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
__________________