I have an error on my pluing but i dont know how to fix it anyone can help me ty
This is the error
PHP Code:
[AMXX] Run time error 4: index out of bounds
L 11/12/2013 - 00:11:45: [AMXX] [0] Jailbreak_Shop.sma::Ham_Damage (line 518)
Heres the code
PHP Code:
public Ham_Damage( iVictim, iAttacker, Float:flDamage, Float:fVecDir[3], tr ) {
if( iVictim != iAttacker && is_user_alive(iAttacker) && is_user_alive(iVictim) && get_user_team( iVictim ) != get_user_team( iAttacker )
&& bItems[iAttacker][1]) {
SetHamParamFloat(3, flDamage * 2.0)
}
if( bItems[iAttacker][8])
{
if(cs_get_user_team(iVictim) == CS_TEAM_CT)
{
new Float:vec[3];
new Float:oldvelo[3];
get_user_velocity(iVictim, oldvelo);
create_velocity_vector(iVictim , iAttacker , vec);
vec[0] += oldvelo[0];
vec[1] += oldvelo[1];
set_user_velocity(iVictim , vec);
}
}
return HAM_IGNORED;
}
This is line 518 ;
PHP Code:
if( bItems[iAttacker][8])