23.01.2013, 06:27
Hello, I get this warning:
Then I put this code:
Код:
function with tag result used before definition, forcing reparse
Код:
stock Float:GetDistanceBetweenPoints(Float:X, Float:Y, Float:Z, Float:PointX, Float:PointY, Float:PointZ) return floatsqroot(floatpower(floatsub(X, PointX), 2.0) + floatpower(floatsub(Y, PointY), 2.0) + floatpower(floatsub(Z, PointZ), 2.0)); { x1 -= x2; y1 -= y2; z1 -= z2; return floatsqroot((x1 * x1) + (y1 * y1) + (z1 * z1)); }