Relationship Between Unit Circle and SA-MP World
#10

Quote:
Originally Posted by MP2
View Post
I had to test this just to be sure, as I was very confident I was right, and I was.. (sorry to correct you :P)

http://www.youtube.com/watch?v=f9vm8VWRdMs

pawn Code:
public OnPlayerUpdate(playerid)
{
    new Float:a, szString[32];
    if(!IsPlayerInAnyVehicle(playerid))
    {
        GetPlayerFacingAngle(playerid, a);
        format(szString, sizeof(szString), "Player Angle: %.0f", a);
    }
    else
    {
        GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
        format(szString, sizeof(szString), "Veh Angle: %.0f", a);
    }
    GameTextForPlayer(playerid, szString, 3000, 3);
    return 1;
}
Are you referring to something else?
Whathe.. ;o When I was creating the AutoPilot i had difficulty with it just because the car angles returned between -180 and 180, and I doubt sa-mp changed anything.. probbly some code I didn't notice was changing my angle >_>

at least, where it happend to me was north-east in LV, but I highly doubt location change will matter.

So well I was wrong ;p
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)