Jump to content

[HELP] How to fix the errors?


Tokio

Recommended Posts

This is my code:

			local sp2 = getVehicleNitroLevel(car)*180
   if sp2 ~= false and sp2 ~= nil and sp2 > 1 then
			dxDrawImage(x-w/1+36, y-h/1+260, 256, 256, "images/fuelindicator.png", sp2,0,0, 0xFFFFFFFF,true)
						dxDrawBorderedImage(x-180, y+45,245, 245, "images/fuelnum.png", 0,0,0, tocolor(colorR2, colorG2, colorB2,255))
			dxDrawImage(x-105, y+110, 95, 95, "images/line.png", 0,0,0, tocolor(0,0,0,255))
			dxDrawImage(x-105, y+110, 95, 95, "images/shadow.png", 0,0,0, tocolor(0,0,0,255))
end

Working fine, but in debugscript flooding this error:

lDzniw9.png

the line 108 is the local sp2 = getVehicleNitroLevel(car)*180

how to fix this error?

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...