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:
public OnPlayerConnect(playerid) {
? ? new Float:pAspectRatio;
? ? pAspectRatio = GetPlayerCameraAspectRatio(playerid);
? ? new str;
? ? format(str, sizeof(str), "Your aspect ratio is: %f", pAspectRatio);
? ? print(str);
}