06.12.2018, 16:30
Quote:
Now players from different versions see everything in different ways, how can I fix and make it so that for all for all textdraw players look normal?
|
Code:
#define GTA_SA_WIDTH 640.0 #define GTA_SA_HEIGHT 448.0 stock AR_Calc(aspect_ratio_width, aspect_ratio_height, Float:x, Float:size_x, bool:centered_sprite, &Float:result_x, &Float:result_size_x) { size_x *= floatmul(floatdiv(float(aspect_ratio_height), float(aspect_ratio_width)), floatdiv(GTA_SA_WIDTH, GTA_SA_HEIGHT)); if(centered_sprite) x -= size_x / 2; result_x = x; result_size_x = size_x; return 1; }
Code:
new Float:td_pos_x = 100.0, Float:td_size_x = 50.0, Float:new_td_pos_x, Float:new_td_size_x; AR_Calc(16, 9, td_pos_x, td_size_x, false, new_td_pos_x, new_td_size_x); TextDrawCreate(new_td_pos_x, y, "box"); TextDrawTextSize(td, new_td_size_x, size_y);