Hi please help with my script:
PHP Code:
public Item_GetMaxSpeed(iWeapon)
{
new iId = get_pdata_int(iWeapon, 43, 4)
if(get_user_team(iId) == 1 || iWeapon == 0) return HAM_IGNORED
SetHamReturnFloat(gun_speed[iWeapon] + float(L_gun[iId][iWeapon]))
return HAM_SUPERCEDE
}
error:
Code:
L 11/07/2013 - 10:03:07: [AMXX] Run time error 4: index out of bounds
L 11/07/2013 - 10:03:07: [AMXX] [0] FuriMod.sma::Item_GetMaxSpeed (line 9748)
Line 9748: SetHamReturnFloat(gun_speed[iWeapon] + float(L_gun[iId][iWeapon]))