mamo Posted August 3, 2012 Posted August 3, 2012 (edited) Hey I use a script And i change the pos ( Local ) And i have that problem Plz help me This in 800x600 Uploaded with ImageShack.us This is in 1280x1xxx Edited August 3, 2012 by Guest
MIKI785 Posted August 3, 2012 Posted August 3, 2012 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?
mamo Posted August 3, 2012 Author Posted August 3, 2012 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
MIKI785 Posted August 3, 2012 Posted August 3, 2012 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
mamo Posted August 3, 2012 Author Posted August 3, 2012 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
mamo Posted August 3, 2012 Author Posted August 3, 2012 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
mamo Posted August 3, 2012 Author Posted August 3, 2012 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 :
MIKI785 Posted August 3, 2012 Posted August 3, 2012 Where did you put that??? Omg... Just make your own resource.
MIKI785 Posted August 3, 2012 Posted August 3, 2012 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.
mamo Posted August 3, 2012 Author Posted August 3, 2012 Don't work Look Add me in skype : mtaserveur123 Thank's.
TwiX! Posted August 3, 2012 Posted August 3, 2012 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
Jaysds1 Posted August 3, 2012 Posted August 3, 2012 ?? Can you Explain plz He's trying to tell you that 'screenHeight' is not defined in the script...
mamo Posted August 3, 2012 Author Posted August 3, 2012 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..
Jaysds1 Posted August 3, 2012 Posted August 3, 2012 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
mamo Posted August 3, 2012 Author Posted August 3, 2012 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
MIKI785 Posted August 3, 2012 Posted August 3, 2012 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)
mamo Posted August 3, 2012 Author Posted August 3, 2012 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.
MIKI785 Posted August 4, 2012 Posted August 4, 2012 What black screen?!?!?!?! Where did you put that?!
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