Velocity check - 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: Velocity check (
/showthread.php?tid=375947)
Velocity check -
BaubaS - 08.09.2012
Whats wrong in this check?
pawn Код:
if ((vX == 0.0 || vX == -0.0 || vX == 0.01) && (vY == 0.0 || vY == -0.0 || vY == 0.01) && (vZ == 0.0 || vZ == -0.0 || vZ == 0.01))
I want to check, if vX is 0.0, -0.0, or 0.01, vY is 0.0, -0.0, or 0.01, and vZ is 0.0, -0.0, or 0.01
Re: Velocity check -
Jessyy - 08.09.2012
"vX == -0.0" ... wtf is this !!!
Re: Velocity check -
leonardo1434 - 08.09.2012
doesn't exist 0 negative or positive.