GetPlayerCameraAspectRatio

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 02:40, 3 February 2014
Smithy (Talk | contribs)

← Previous diff
Revision as of 03:12, 3 February 2014
Connor Mead (Talk | contribs)

Next diff →
Line 22: Line 22:
[[Category:Scripting Functions]] [[Category:Scripting Functions]]
 +
 +[[fr:GetPlayerCameraAspectRatio]]

Revision as of 03:12, 3 February 2014



GetPlayerCameraAspectRatio was added in SA-MP 0.3z This function was added in SA-MP 0.3z and will not work in earlier versions!


Description:

Retrieves the aspect ratio of a player's camera.


Parameters:
(playerid)
playeridThe ID of the player to get the camera aspect ratio of.


Return Values:

The aspect ratio of the player's camera, as a float.


new szString[144];
format(szString, sizeof(szString), "Your aspect ratio: %f", GetPlayerCameraAspectRatio(playerid));
SendClientMessage(playerid, -1, szString);

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

In other languages