hi all,
I get this error written in my logs.txt file when I play the server with bazooka plugin:
L 08/14/2014 - 18:21:04: [AMXX] Displaying debug trace (plugin "bazooka_fixed.amxx")
L 08/14/2014 - 18:21:04: [AMXX] Run time error 4: index out of bounds
L 08/14/2014 - 18:21:04: [AMXX] [0] bazooka_fixed.sma::player_bazooka (line 1283)
below is the PHP code ..line 1283 starts at the first line u see below..
hmm error: index out of bounds .. I can compile the plugin successfully as it is with no error..
but when I start playing it logs errors that can go over 20 MB in size
please help!!
PHP Code:
if (user_controll[id] > 0) {
new RocketEnt = user_controll[id]
if (is_valid_ent(RocketEnt)) {
new Float:Velocity[3]
VelocityByAim(id, 500, Velocity)
entity_set_vector(RocketEnt, EV_VEC_velocity, Velocity)
new Float:NewAngle[3]
entity_get_vector(id, EV_VEC_v_angle, NewAngle)
entity_set_vector(RocketEnt, EV_VEC_angles, NewAngle)
}
else {
attach_view(id, id)
}
}
return FMRES_IGNORED
}