Guest Posted November 14, 2008 Posted November 14, 2008 hello, i have an idea...i got the travelmeter script from 'Nidza' and maybe its an idea to make it to KM...its now in meters but maybe its an idea to make it to km and then maybe on a other place on the screen of the game...
robhol Posted November 14, 2008 Posted November 14, 2008 hello, i have an idea...i got the travelmeter script from 'Nidza' and maybe its an idea to make it to KM...its now in meters but maybe its an idea to make it to km and then maybe on a other place on the screen of the game... Maths for 10 year olds ftw. km = m / 1000 Do NOT PM ME for help unless invited. - New MTA Script Editor Scripting help "etiquette": understandable language, relevant code (ALL code if unsure), [Lua] tags, error messages with line numbers. Super simple stuff.
50p Posted November 15, 2008 Posted November 15, 2008 ...Maths for 10 year olds ftw. km = m / 1000 ROFL 1Km = 1m * 1000 - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
=FAS=Shigawire Posted November 15, 2008 Posted November 15, 2008 and m = km / 1000 as robhol said, maths, 3rd grade Hosting your MTA:SA server! http://gta-servers.net.
Willy Posted November 15, 2008 Posted November 15, 2008 robhol was right btw. local KM = M / 1000 i.e if M was 6000, 6000 metres = 6 kilometres. that make it easier to understand?
50p Posted November 16, 2008 Posted November 16, 2008 robhol was right btw.local KM = M / 1000 i.e if M was 6000, 6000 metres = 6 kilometres. that make it easier to understand? That is correct if M is distance travelled. - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
darkdreamingdan Posted November 16, 2008 Posted November 16, 2008 and m = km / 1000as robhol said, maths, 3rd grade Um, no m = km * 1000 VCP FOREVER!
robhol Posted November 16, 2008 Posted November 16, 2008 To sum it up, triangle style: (which is a useful trick for any equation with 3 links, like v = s/t, U = R·I, whatever, if you don't want to, or can't, solve it like an equation): -km- m · k km = k * m = 1000 * m m = km / k = km / 1000 1000 = km / m km and m measure the distance traveled, k = 1000 (constant) All done with the math lesson? Do NOT PM ME for help unless invited. - New MTA Script Editor Scripting help "etiquette": understandable language, relevant code (ALL code if unsure), [Lua] tags, error messages with line numbers. Super simple stuff.
CodeMaster Posted November 18, 2008 Posted November 18, 2008 Lol, what a math mess around my script! And at my school it was at 2nd grade! BTW: nice lesson robhol ^^
Playsinator Posted September 24, 2009 Posted September 24, 2009 Nice^^ Do you still have the travelmeter? It sounds nice. Playsi
Killeralec99 Posted September 24, 2009 Posted September 24, 2009 and if you want it in miles, just divide it by 1609 i belive meters/1609=miles
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