29.11.2010, 03:05
Okay, so.. I know there's plenty of other people's functions out there to do this, but I wanted to do it myself. Just one problem though. It returns a warning, and I can't figure out why. I made a stock to get the distance between 2 points in 3 dimensions.
I get the error "** (676) : warning 213: tag mismatch"
Line 676 is
Can anybody help me please?
Thanks in advance
Код:
stock GetDistanceBetweenPoints(Float:x,Float:y,Float:z,Float:x2,Float:y2,Float:z2) { new Float:d1 = floatsqroot(floatadd(floatpower(floatabs(floatsub(x2,x)),2), floatpower(floatabs(floatsub(y2,y)),2))); new Float:realz = floatabs(floatsub(z2,z)); new Float:reald = floatsqroot(floatadd(floatpower(d1,2),floatpower(realz,2))); return reald; }
Line 676 is
Код:
return reald;
Thanks in advance