GetXYInFrontOfVehicle problem?
#5

Quote:
Originally Posted by xir
Посмотреть сообщение
This should be the right stock

pawn Код:
stock GetXYInFrontOfPlayer(playerid, &Float:x2, &Float:y2, Float:distance) // ******
{
    new Float:a;

    GetPlayerPos(playerid, x2, y2, a);
    GetPlayerFacingAngle(playerid, a);

    if(GetPlayerVehicleID(playerid))
    {
        GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
    }

    x2 += (distance * floatsin(-a, degrees));
    y2 += (distance * floatcos(-a, degrees));
}
its the same function lolz... just adding spaces and 1 check >_>
-.-"
Reply


Messages In This Thread
GetXYInFrontOfVehicle problem? - by Donya - 30.04.2011, 17:25
Re: GetXYInFrontOfVehicle problem? - by xir - 30.04.2011, 17:30
Re: GetXYInFrontOfVehicle problem? - by Donya - 30.04.2011, 17:43
Re: GetXYInFrontOfVehicle problem? - by fordawinzz - 26.12.2011, 16:47
Re: GetXYInFrontOfVehicle problem? - by jamesbond007 - 26.12.2011, 18:24

Forum Jump:


Users browsing this thread: 2 Guest(s)