bandi94 Posted July 7, 2011 Posted July 7, 2011 ok the min time to a timer is (....,50,0) on a speedometer work bk the needel need to make 300 grade rotacion on 250-300km/h but the rpm need to make a 300 grade rotacion on every +40 km/h and its not moving smoot its a function or something what can change the timer to check the rpm faster to get a smoother move ?? or an else comand for a faster chek for rpm we have a function whit 6 if and the function returns rpm= ...... and wee need to return faster the rpm=.... that the timer whit 50,0 thx ( this will be a publik rpm +gear meter) (sorry my crap english)
Antibird Posted July 7, 2011 Posted July 7, 2011 An only thing which is faster than 50 ms timer is "onClientRender"/"onClientPreRender" events. As smooth as your FPS. Not sure I understood the rest of the question thought.
bandi94 Posted July 7, 2011 Author Posted July 7, 2011 hmm . that "onClientRender" i can't get it to work i have some problem in that code ?he need to put out "test" on screen but i dont get the text on my screen ? pls help local screenWidth, screenHeight = guiGetScreenSize() function createText ( ) dxDrawText( "test", 44, screenHeight-43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "pricedown" ) end function HandleTheRendering() addEventHandler("onClientRender",rootElement, createText) end addEventHandler("onClientResourceStart",resourceRoot, HandleTheRendering) on the needel the "onClientRender: work whit text i think i have some problems whit screensie and x/y or whit drawtext
JR10 Posted July 7, 2011 Posted July 7, 2011 dxDrawText( "test", 44, screenHeight-43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "pricedown" ) 44, screenHeight-43, screenWidth, screenHeight If i'm right it can't be like that. The position and width, height are wrong
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