Help with MPProjectPointOnVehicle
#1

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.
Reply
#2

Show the MPProjectPointOnVehicle too.
Reply
#3

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

Up, I really need help with this!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)