Posts: 3,324
Threads: 96
Joined: Sep 2013
Quote:
Originally Posted by Bruno_Cyra
PHP код:
#define SCREEN_PROPERTY_WIDTH;
#define SCREEN_PROPERTY_HEIGHT;
native GetPlayerScreenProperty(playerid,propertyOption);
How about a function who get the Screen resolution?, that could help on Dialogs and TextDraw size definition, to prevent screen overflow.
pe:
PHP код:
new string[256];
new x, y;
x = GetPlayerScreenProperty(playerid,SCREEN_PROPERTY_WIDTH);
y = GetPlayerScreenProperty(playerid,SCREEN_PROPERTY_HEIGHT);
format(string,sizeof(string),"Your resolution is: %dx%d",x,y);
SendClientMessage(playerid,0xFFFFFF,string);
|
You can already get screen resolution using GetPlayerCameraAspectRatio.