Oussema Posted March 25, 2017 Share Posted March 25, 2017 look at this with 1440,900 and look at this with 1366,768 code: for ii, v in pairs (ranksun[jobname]) do dxDrawImage(x*599, y*(473)+(29*ii), x*350, y*40, "jobranks/rank_data.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText(v, x*599, y*(598)+(58*ii), x*949, y*385, tocolor(0, 204, 0, 255), 1.00, dxfont1_AGENCYR, "center", "center", false, false, false, false, false) end Link to comment
NeXuS™ Posted March 25, 2017 Share Posted March 25, 2017 Try to replace line nr. 3 with: dxDrawText(v, x*599, y*(473)+(29*ii), x*599+x*350, y*(473)+(29*ii)+y*40, y, tocolor(0, 204, 0, 255), 1.00, dxfont1_AGENCYR, "center", "center", false, false, false, false, false) Link to comment
Oussema Posted March 25, 2017 Author Share Posted March 25, 2017 1 hour ago, NeXuS™ said: Try to replace line nr. 3 with: dxDrawText(v, x*599, y*(473)+(29*ii), x*599+x*350, y*(473)+(29*ii)+y*40, y, tocolor(0, 204, 0, 255), 1.00, dxfont1_AGENCYR, "center", "center", false, false, false, false, false) bro the texts are fine but i'm talking about the image look at the images Link to comment
NeXuS™ Posted March 25, 2017 Share Posted March 25, 2017 Whats wrong with it? They are bigger. Link to comment
Oussema Posted March 25, 2017 Author Share Posted March 25, 2017 in the 2nd ss they are fine but in first one they are like bigger or somthing like that Link to comment
NeXuS™ Posted March 25, 2017 Share Posted March 25, 2017 (edited) It's because its not a set value. You are multipling your values with x and y. Edited March 25, 2017 by NeXuS™ Link to comment
Oussema Posted March 25, 2017 Author Share Posted March 25, 2017 'math.floor or math.ceil on the args.' hmm really i can't understand what you mean with that , i'm not pro scripter give me example pls Link to comment
NeXuS™ Posted March 25, 2017 Share Posted March 25, 2017 Refresh the page, I edited the post above. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now