Will you tell me how to fix this error here's the plugin code.
L 11/19/2011 - 19
4
7: [ZP] Invalid Player (2)
L 11/19/2011 - 19
4
7: [AMXX] Displaying debug trace (plugin "zp50_item_infection_bomb.amxx")
L 11/19/2011 - 19
4
7: [AMXX] Run time error 10: native error (native "zp_infect_user")
L 11/19/2011 - 19
4
7: [AMXX] [0] zp50_item_infection_bomb.sma::InfectionSmokeT hink (line 477)
PHP Code:
public InfectionSmokeThink( ent )
{
static Float:vOrigin[3],entinsphere
entity_get_vector( ent, EV_VEC_origin, vOrigin )
entinsphere = -1;
while ( ( entinsphere = find_ent_in_sphere(entinsphere, vOrigin, get_pcvar_float(pcvarNadeRadius) + 20.0) ) )
{
if ( 1 <= entinsphere <= maxplayers && !zp_get_user_zombie(entinsphere) )
{
zp_infect_user(entinsphere)
}
}
entity_set_float( ent, EV_FL_nextthink, get_gametime( ) + 0.1)
}