benwilkins Posted April 21, 2012 Share Posted April 21, 2012 I have put the following code into my script: local x, y = guiGetScreenSize() dxDrawRectangle ( x/800.8, y/860, 1000*10, 1000, tocolor ( 0, 0, 0, 220) ) But if you look at the image below, there is a small line at the left and the top where the rectangle does not cover. I have tried messing with the x/ and y/ values, but it doesnt do anything. http://puu.sh/qIEw Any ideas? Link to comment
Absence2 Posted April 21, 2012 Share Posted April 21, 2012 (edited) yes just draw it like this: local sX, sY = guiGetScreenSize() dxDrawRectangle ( 0, 0, sX, sY, tocolor(0, 0, 0, 220), false ) Edited April 21, 2012 by Guest Link to comment
benwilkins Posted April 21, 2012 Author Share Posted April 21, 2012 Thank you, it worked. Link to comment
Michael# Posted April 21, 2012 Share Posted April 21, 2012 yesjust draw it like this: local sX, sY = guiGetScreenSize() dxDrawRectangle, 0, 0, sX, sY, tocolor(0, 0, 0, 220), false ) Your code is wrong. Link to comment
Absence2 Posted April 21, 2012 Share Posted April 21, 2012 what is wrong about it then Link to comment
Michael# Posted April 21, 2012 Share Posted April 21, 2012 You put ',' instead of '(' 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