Can't complie this
#10

pawn Код:
GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
{
    new Float:a;
    GetPlayerPos(playerid, x, y, a);
    GetPlayerFacingAngle(playerid, a);
    if (GetPlayerVehicleID(playerid))
    {
      GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
    }
    x += (distance * floatsin(-a, degrees));
    y += (distance * floatcos(-a, degrees));
}
in your script
Reply


Messages In This Thread
Can't complie this - by vitalij931 - 08.11.2009, 17:01
Re: Can't complie this - by vitalij931 - 08.11.2009, 17:37
Re: Can't complie this - by Jese - 08.11.2009, 18:29
Re: Can't complie this - by vitalij931 - 08.11.2009, 18:41
Re: Can't complie this - by dirkblok - 08.11.2009, 18:41
Re: Can't complie this - by vitalij931 - 08.11.2009, 18:45
Re: Can't complie this - by vitalij931 - 08.11.2009, 18:55
Re: Can't complie this - by Veinara - 09.11.2009, 07:39
Re: Can't complie this - by vitalij931 - 09.11.2009, 12:14
Re: Can't complie this - by dice7 - 09.11.2009, 21:25

Forum Jump:


Users browsing this thread: 1 Guest(s)