Oussema Posted March 25, 2017 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
NeXuS™ Posted March 25, 2017 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)
Oussema Posted March 25, 2017 Author 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
Oussema Posted March 25, 2017 Author Posted March 25, 2017 in the 2nd ss they are fine but in first one they are like bigger or somthing like that
NeXuS™ Posted March 25, 2017 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™
Oussema Posted March 25, 2017 Author 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
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