Code:
new Float:Ratio = float(g_CarMaxSpeed[id] / 1000)
g_Userspeed[id] = Ratio * g_PredefGears[g_CurrentGear[id]]
server_print("%f %f", Ratio, g_Userspeed[id])
Prints 0.0000000 0.00000000
Few notes:
g_CarMaxSpeed[id] is 485
g_PredefGears[g_CurrentGear[id]] is 1
What is the proper way to do this?
Thanks in advance, DF3.