warning 213: tag mismatch
#1

Quote:

new Float:ddist = floatsqroot(dx^2 + dy^2 + dz^2);

thanks to the helpers
Reply
#2

Please post the codes where you declare dx, dy and dz.. They must be floats
Reply
#3

What does ^ do? I think it's * ?
Reply
#4

xVIP3Rx
Floats
newbienoob:

that's should be exponentiation
Reply
#5

You want to use this.

floatsqroot(dx*dx + dy*dy + dz*dz)

or

floatsqroot(floatpower(dx, 2) + floatpower(dy, 2) + floatpower(dz, 2))
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)