mamo Posted August 3, 2012 Share 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 Link to comment
MIKI785 Posted August 3, 2012 Share 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? Link to comment
mamo Posted August 3, 2012 Author Share 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 Link to comment
MIKI785 Posted August 3, 2012 Share 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 Link to comment
mamo Posted August 3, 2012 Author Share Posted August 3, 2012 Ok thank's i will Test That code . Link to comment
mamo Posted August 3, 2012 Author Share 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 Link to comment
mamo Posted August 3, 2012 Author Share 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 Link to comment
MIKI785 Posted August 3, 2012 Share Posted August 3, 2012 What??? Do debug... debugscript 2 Link to comment
mamo Posted August 3, 2012 Author Share 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 : Link to comment
MIKI785 Posted August 3, 2012 Share Posted August 3, 2012 Where did you put that??? Omg... Just make your own resource. Link to comment
mamo Posted August 3, 2012 Author Share Posted August 3, 2012 Don't work .. Help me plz Link to comment
MIKI785 Posted August 3, 2012 Share 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. Link to comment
mamo Posted August 3, 2012 Author Share Posted August 3, 2012 Don't work Look Add me in skype : mtaserveur123 Thank's. Link to comment
TwiX! Posted August 3, 2012 Share 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 Link to comment
Jaysds1 Posted August 3, 2012 Share Posted August 3, 2012 ?? Can you Explain plz He's trying to tell you that 'screenHeight' is not defined in the script... Link to comment
mamo Posted August 3, 2012 Author Share 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.. Link to comment
Jaysds1 Posted August 3, 2012 Share 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 Link to comment
mamo Posted August 3, 2012 Author Share 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 Link to comment
MIKI785 Posted August 3, 2012 Share 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) Link to comment
mamo Posted August 3, 2012 Author Share 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. Link to comment
MIKI785 Posted August 4, 2012 Share Posted August 4, 2012 What black screen?!?!?!?! Where did you put that?! 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