2021-03-23, 09:37 PM
(This post was last modified: 2021-03-24, 12:09 AM by robertocaribbean.)
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:
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(str, sizeof(str), "Your aspect ratio is: %f", pAspectRatio);
? ? print(str);
}