Jump to content

Help plzzz


mamo

Recommended Posts

That's dxDrawing? If so, I would use guiGetScreenSize() and do something like this:

x, y = guiGetScreenSize() --x is the width of the screen 
x = x - 100 --X is now 100 Pixel from the right end of the screen. 
--Then use x in the dxDrawText for the screenX argument. 

Understand? :D

Link to comment
That's dxDrawing? If so, I would use guiGetScreenSize() and do something like this:
x, y = guiGetScreenSize() --x is the width of the screen 
x = x - 100 --X is now 100 Pixel from the right end of the screen. 
--Then use x in the dxDrawText for the screenX argument. 

Understand?

No :/ I don't.

dxDrawColorText ('#ffa500sb#ffffffgames#ffa500.com#ffffff.br', 950, screenHeight - dxGetFontHeight(250, 'default-bold')/2+1, 100, 100+1, tocolor ( 255, 255, 255, 255 ), 0.9, 'default-bold', 0.60, 'right') 
end 

That my Code

Link to comment

Try this:

  
x, y = guiGetScreenSize() --x is the width of the screen 
x = x - 100 --X is now 100 Pixel from the right end of the screen. 
  
dxDrawColorText ('#ffa500sb#ffffffgames#ffa500.com#ffffff.br', x, screenHeight - dxGetFontHeight(250, 'default-bold')/2+1, 100, 100+1, tocolor ( 255, 255, 255, 255 ), 0.9, 'default-bold', 0.60, 'right') 
end 

Link to comment
Try this:
  
x, y = guiGetScreenSize() --x is the width of the screen 
x = x - 100 --X is now 100 Pixel from the right end of the screen. 
  
dxDrawColorText ('#ffa500sb#ffffffgames#ffa500.com#ffffff.br', x, screenHeight - dxGetFontHeight(250, 'default-bold')/2+1, 100, 100+1, tocolor ( 255, 255, 255, 255 ), 0.9, 'default-bold', 0.60, 'right') 
end 

Don't works

Link to comment
   x, y = guiGetScreenSize() --x is the width of the screen 
x = x - 100 --X is now 100 Pixel from the right end of the screen. 
  
dxDrawColorText ('#ffa500sb#ffffffgames#ffa500.com#ffffff.br', x, screenHeight - dxGetFontHeight(250, 'default-bold')/2+1, 100, 100+1, tocolor ( 255, 255, 255, 255 ), 0.9, 'default-bold', 0.60, 'right') 
end 

I mean Black screen

Link to comment
   x, y = guiGetScreenSize() --x is the width of the screen 
x = x - 100 --X is now 100 Pixel from the right end of the screen. 
  
dxDrawColorText ('#ffa500sb#ffffffgames#ffa500.com#ffffff.br', x, screenHeight - dxGetFontHeight(250, 'default-bold')/2+1, 100, 100+1, tocolor ( 255, 255, 255, 255 ), 0.9, 'default-bold', 0.60, 'right') 
end 

Screen : mtascreen20120803161926.png

Link to comment

Make a resource and put in:

  
 x, y = guiGetScreenSize() --x is the width of the screen 
x = x - 100 --X is now 100 Pixel from the right end of the screen. 
  
addEventHandler("onClientRender", getRootElement(), 
function () 
dxDrawColorText ('#ffa500sb#ffffffgames#ffa500.com#ffffff.br', x, screenHeight - dxGetFontHeight(250, 'default-bold')/2+1, 100, 100+1, tocolor ( 255, 255, 255, 255 ), 0.9, 'default-bold', 0.60, 'right') 
end) 
  

Then add it to meta.xml as CLIENT side script.

Link to comment
Make a resource and put in:
  
 x, y = guiGetScreenSize() --x is the width of the screen 
x = x - 100 --X is now 100 Pixel from the right end of the screen. 
  
addEventHandler("onClientRender", getRootElement(), 
function () 
dxDrawColorText ('#ffa500sb#ffffffgames#ffa500.com#ffffff.br', x, screenHeight - dxGetFontHeight(250, 'default-bold')/2+1, 100, 100+1, tocolor ( 255, 255, 255, 255 ), 0.9, 'default-bold', 0.60, 'right') 
end) 
  

Then add it to meta.xml as CLIENT side script.

check your code

there not have screenHeight

Link to comment

But :

x, y = guiGetScreenSize() --x is the width of the screen 
    x = x - 100 --X is now 100 Pixel from the right end of the screen. 
      
    dxDrawColorText ('#ffa500sb#ffffffgames#ffa500.com#ffffff.br', x, 'screenHeight - dxGetFontHeight(250, 'default-bold')/2+1, 100, 100+1, tocolor ( 255, 255, 255, 255 ), 0.9, 'default-bold', 0.60, 'right') 
end 
 

And Still Not WOrking..

Link to comment

try this:

x, y = guiGetScreenSize() --x is the width of the screen 
    x = x - 100 --X is now 100 Pixel from the right end of the screen. 
      
    dxDrawColorText ('#ffa500sb#ffffffgames#ffa500.com#ffffff.br', x,(y - dxGetFontHeight(250, 'default-bold')/2+1), 100, 100+1, tocolor ( 255, 255, 255, 255 ), 0.9, 'default-bold', 0.60, 'right') --screenHeight was not defined, I think you wanted to use y 
end 

and please read the comments

Link to comment
try this:
x, y = guiGetScreenSize() --x is the width of the screen 
    x = x - 100 --X is now 100 Pixel from the right end of the screen. 
      
    dxDrawColorText ('#ffa500sb#ffffffgames#ffa500.com#ffffff.br', x,(y - dxGetFontHeight(250, 'default-bold')/2+1), 100, 100+1, tocolor ( 255, 255, 255, 255 ), 0.9, 'default-bold', 0.60, 'right') --screenHeight was not defined, I think you wanted to use y 
end 

and please read the comments

Don't work your code :/ Go test in your server

Link to comment
try this:
x, y = guiGetScreenSize() --x is the width of the screen 
    x = x - 100 --X is now 100 Pixel from the right end of the screen. 
      
    dxDrawColorText ('#ffa500sb#ffffffgames#ffa500.com#ffffff.br', x,(y - dxGetFontHeight(250, 'default-bold')/2+1), 100, 100+1, tocolor ( 255, 255, 255, 255 ), 0.9, 'default-bold', 0.60, 'right') --screenHeight was not defined, I think you wanted to use y 
end 

and please read the comments

Don't work your code :/ Go test in your server

OMG...

 x, y = guiGetScreenSize() --x is the width of the screen 
x = x - 100 --X is now 100 Pixel from the right end of the screen. 
  
addEventHandler("onClientRender", getRootElement(), 
function () 
dxDrawColorText ('#ffa500sb#ffffffgames#ffa500.com#ffffff.br', x, y - dxGetFontHeight(250, 'default-bold')/2+1, 100, 100+1, tocolor ( 255, 255, 255, 255 ), 0.9, 'default-bold', 0.60, 'right') 
end) 

Link to comment
try this:
x, y = guiGetScreenSize() --x is the width of the screen 
    x = x - 100 --X is now 100 Pixel from the right end of the screen. 
      
    dxDrawColorText ('#ffa500sb#ffffffgames#ffa500.com#ffffff.br', x,(y - dxGetFontHeight(250, 'default-bold')/2+1), 100, 100+1, tocolor ( 255, 255, 255, 255 ), 0.9, 'default-bold', 0.60, 'right') --screenHeight was not defined, I think you wanted to use y 
end 

and please read the comments

Don't work your code :/ Go test in your server

OMG...

 x, y = guiGetScreenSize() --x is the width of the screen 
x = x - 100 --X is now 100 Pixel from the right end of the screen. 
  
addEventHandler("onClientRender", getRootElement(), 
function () 
dxDrawColorText ('#ffa500sb#ffffffgames#ffa500.com#ffffff.br', x, y - dxGetFontHeight(250, 'default-bold')/2+1, 100, 100+1, tocolor ( 255, 255, 255, 255 ), 0.9, 'default-bold', 0.60, 'right') 
end) 

Black Scrreeenn.

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...