01.12.2010, 12:43
Nop, still different results using
Thank you both for your advices. I'll make some speedtests and see if it worth converting. Probably I'll just rewrite custom functions without samp native functions calls.
Have a nice day,
Mike.
pawn Код:
angle = 90.0f - ( atan2( y-iy, x-ix ) * ( 180.0f / 3.1415f ) );
Код:
[Wed Dec 1 15:49:58 2010] DEBUG: "!PAWN- Playerid: X: 1544.198242, Y: -1631.901489, Z: 13.382812 | facingID: X: 1540.967651, Y: -1628.268066, Z: 13.103264 Unghiul 41.641311". [Wed Dec 1 15:49:58 2010] DEBUG: "!PLUGIN- Playerid: X: 1544.198242, Y: -1631.901489, Z: 13.382812 | facingID: X: 1540.967651, Y: -1628.268066, Z: 13.103265 Unghiul -41.645187". [Wed Dec 1 15:50:12 2010] DEBUG: "!PAWN- Playerid: X: 1544.198242, Y: -1631.901489, Z: 13.382812 | facingID: X: 1545.893432, Y: -1627.286132, Z: 13.092100 Unghiul 339.832031". [Wed Dec 1 15:50:12 2010] DEBUG: "!PLUGIN- Playerid: X: 1544.198242, Y: -1631.901489, Z: 13.382812 | facingID: X: 1545.893433, Y: -1627.286133, Z: 13.092100 Unghiul 20.165895".
Quote:
However I would be VERY careful with rewriting your mode in C, especially if you have a lot of calls to native functions, because there is no direct access so there are very large overheads involved.
|
Have a nice day,
Mike.