SA-MP Forums Archive
What is wrong with this line ? - 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: What is wrong with this line ? (/showthread.php?tid=420117)



What is wrong with this line ? - AIped - 03.03.2013

Title says all...i tried different combinations of replacing some (( and )) but failed

pawn Код:
if((floatadd(floatabs(CarVelocity[0]),floatadd(floatabs(CarVelocity[1]), floatabs(CarVelocity[2]))) > 0.300000)
Thanks for the help in advance


Re: What is wrong with this line ? - Vince - 03.03.2013

What's wrong with just using normal operators?

pawn Код:
if(floatabs(CarVelocity[0] + CarVelocity[1] + CarVelocity[2]) > 0.3)



Re: What is wrong with this line ? - AIped - 03.03.2013

lol i didnt think of that but thanks..im not sure if its working though.
Im working on a way to check if a player jump out of his vehicle at some speed that in real life should hurt alot XD.