• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] GetPlayerCameraAspectRatio
#1
Hello everyone.

I have read in the open.mp documentation about this function, and if I understand correctly it can only return three values:

Widescreen ON: Should be 1.7764707 but I get 1.000000.
Widescreen OFF: Should be 1.3333334 but I get 1.000000.
5:4 when the LETTERBOX mode is ON: 1.2470589. I don't know how to test this.

Is there something I'm not understanding or is the wiki wrong?

Here is the code:

PHP Code:
public OnPlayerConnect(playerid) {
? ? new 
Float:pAspectRatio;
? ? 
pAspectRatio GetPlayerCameraAspectRatio(playerid);

? ? new 
str[80];
? ? 
format(strsizeof(str), "Your aspect ratio is: %f"pAspectRatio);
? ? print(
str);

  Reply


Messages In This Thread
GetPlayerCameraAspectRatio - by robertocaribbean - 2021-03-23, 09:37 PM
RE: GetPlayerCameraAspectRatio - by Pinch - 2021-03-24, 01:31 AM

Forum Jump: