Jump to content

[BUG] Problem of getting vehicle's speed.


Recommended Posts

Hi! I've been making a speedometer for two damn days now, i finished it yesterday, with all it's positioning and bugs, but i just cant fix one of them.
It says: "attempt to perform arthimetic on a boolean value" for this line:
 

local jarmuHealth = getElementHealth ( jatekosVehicle ) / 10

What the problem could be? Any fix for it? It only writes on enter, but the script is working fine, after that, even it's value is not nil. Can i forbid this resource, from outputting anything into debugscript?

Edited by Dutchman101
fix topic title for section guidelines
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...