SA-MP Forums Archive
GetPlayerLastShotVectors - BUG - NaN when player shoots something very far away - 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: GetPlayerLastShotVectors - BUG - NaN when player shoots something very far away (/showthread.php?tid=571103)



GetPlayerLastShotVectors - BUG - NaN when player shoots something very far away - Yashas - 16.04.2015

Code:
GetPlayerLastShotVectors(playerid, fOriginX, fOriginY, fOriginZ, fHitPosX, fHitPosY, fHitPosZ);
hitPos become NaN if the player shoots and the bullet hits(note this is not the case where the player hits nothing,he has shot a player but still NaN) a player who is very very far away.Maybe around 200 SA Units.