SA-MP Forums Archive
Help with MPProjectPointOnVehicle - 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: Help with MPProjectPointOnVehicle (/showthread.php?tid=349572)



Help with MPProjectPointOnVehicle - zgintasz - 09.06.2012

Hi guys,

Help me fix this. The image explains the problem.



pawn Код:
stock function( playerid, vehicleid )
{
    new
        Float:offsetPos[ 3 ],
        Float:result[ 3 ]
    ;
    GetVehicleModelInfo( GetVehicleModel( vehicleid ), VEHICLE_MODEL_INFO_WHEELSFRONT, offsetPos[ 0 ], offsetPos[ 1 ], offsetPos[ 2 ] );
    MPProjectPointOnVehicle( vehicleid, offsetPos[ 0 ], offsetPos[ 1 ], offsetPos[ 2 ], result[ 0 ], result[ 1 ], result[ 2 ], 1 );

    printf( "%f %f %f", result[ 0 ], result[ 1 ], result[ 2 ] );
    CreateObject( 324, result[ 0 ], result[ 1 ], result[ 2 ], 0.0, 0.0, 0.0 );
    return false;
}
Thanks.


Re: Help with MPProjectPointOnVehicle - MadeMan - 09.06.2012

Show the MPProjectPointOnVehicle too.


Re: Help with MPProjectPointOnVehicle - zgintasz - 09.06.2012

I'm using this plugin:
https://sampforum.blast.hk/showthread.php?tid=270508


Re: Help with MPProjectPointOnVehicle - zgintasz - 10.06.2012

Up, I really need help with this!