warning 213: tag mismatch - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: warning 213: tag mismatch (
/showthread.php?tid=482928)
warning 213: tag mismatch -
Roai - 23.12.2013
Quote:
new Float:ddist = floatsqroot(dx^2 + dy^2 + dz^2);
|
thanks to the helpers
Re: warning 213: tag mismatch -
xVIP3Rx - 23.12.2013
Please post the codes where you declare dx, dy and dz.. They must be floats
Re: warning 213: tag mismatch -
newbienoob - 23.12.2013
What does ^ do? I think it's * ?
Re: warning 213: tag mismatch -
Roai - 23.12.2013
xVIP3Rx
Floats
newbienoob:
that's should be exponentiation
Re: warning 213: tag mismatch -
Pottus - 23.12.2013
You want to use this.
floatsqroot(dx*dx + dy*dy + dz*dz)
or
floatsqroot(floatpower(dx, 2) + floatpower(dy, 2) + floatpower(dz, 2))