Sex* Posted March 31, 2013 Share Posted March 31, 2013 At first it was like this: g_Window.window = guiCreateWindow(left, top, g_Window.windowWidth, g_Window.windowHeight, "Interpolation on GUI", false) Well i made this: addEventHandler("onClientRender", root, g_Window.window = dxDrawRectangle ( x/3.8, y/3.8, x/2.02, y/2, tocolor ( 0, 0, 0, 150 ) ) But doesnt work. [2013-03-31 20:27:19] WARNING: Loading script failed: deathlist\rankingBoard-Pato_c.lua:15: ')' expected (to close '(' at line 14) near '=' Link to comment
Sasu Posted March 31, 2013 Share Posted March 31, 2013 Did you close addEventHandler? Link to comment
TAPL Posted March 31, 2013 Share Posted March 31, 2013 addEventHandler("onClientRender", root, function() g_Window.window = dxDrawRectangle ( x/3.8, y/3.8, x/2.02, y/2, tocolor ( 0, 0, 0, 150 ) ) end) Link to comment
NodZen Posted March 31, 2013 Share Posted March 31, 2013 could you post the full script? Link to comment
Sex* Posted March 31, 2013 Author Share Posted March 31, 2013 Ah i already made it with guiCreateStaticImage, No help needed anymore. Link to comment
Castillo Posted March 31, 2013 Share Posted March 31, 2013 Still, you can't do what you was doing there, dxDrawRectangle returns "true", doesn't return any element, you can't use it as parent for GUI elements. 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