Jump to content

Replacing guiCreateWindow with dxDrawRectangle


Sex*

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...