Код:
stock func_GetWeaponAttachment(id, Float:flOutput[3], Float:flDistance = 40.0) {
new Float: flVEnd[3]
new iVEnd[3]
get_user_origin(id, iVEnd, Origin_AimEndEyes);
IVecFVec(iVEnd, flVEnd);
new Float:flOrigin[3], Float:flAngle[3];
get_entvar(id, var_origin, flOrigin);
get_entvar(id, var_view_ofs, flAngle);
xs_vec_add(flOrigin, flAngle, flOrigin);
new Float:flAttack[3];
xs_vec_sub(flVEnd, flOrigin, flAttack);
xs_vec_sub(flVEnd, flOrigin, flAttack);
new Float:flRate;
flRate = flDistance / vector_length(flAttack);
xs_vec_mul_scalar(flAttack, flRate, flAttack);
xs_vec_add(flOrigin, flAttack, flOutput); }
ВЫВОД;
xd.sma(431) : error 017: undefined symbol "Origin_AimEndEyes"
xd.sma(431) : error 088: number of arguments does not match definition
AMXMODX 1.10.0.5392
Последнее редактирование: