SA-MP Forums Archive
Quaternion bug - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: Quaternion bug (/showthread.php?tid=573645)



Quaternion bug - SetupDLL - 09.05.2015

I can't get valid vehicle quat data after it (re)spawns, but can before I enter it

This is my test code:
Код:
GetVehicleRotationQuat(vehicleid, w, x, y, z);
printf("%f, %f, %f, %f", w, x, y, z);
gives me this results before I enter this vehicle:
Код:
/0)-),/(.,.000000, 0.000000, 0.000000, -/0)-),/(.,.000000
and after I enter it (normal data):
Код:
0.707106, 0.000211, -0.000211, -0.707106



Re: Quaternion bug - Pottus - 09.05.2015

Yes this function is not very reliable.


AW: Quaternion bug - NaS - 15.05.2015

There is no data if noone is sitting in, and sometimes the first few checks after entering do not work and lead to strange behaviour.

Looks like the result of an array index out of bounds error, weird data getting out.