The online racing simulator
Remember UC InSim [SOLVED]
(9 posts, started )
Remember UC InSim
Hello,

In UC InSim is the license so, my question is how i can add a level on the basis of that license ?
I mean I mean that instead of interface license I appear to interface with level and change level to some kms

P.S. I'm Romanian . . Sorry for my bad english.
You have first to explain to ur program what mean lvl for you. Stock license system in UCIS won't be good for this if I understand what you want to do.
I want to add just a simple level
For example 0 kms = Lvl 0
50 kms = Lvl 1
1500 kms = Lvl 7
Nobody ? ):
....
This sounds like you want the "Level" to count on the total distance, here's an example:


if (C.TotalDistance / 1000 < 50)
{
putyourbuttonhere("Level: 0")
}
else if (C.TotalDistance / 1000 < 100)
{
putyourbuttonhere("Level: 1")
}

...and so on by using the "else if" statement.
Ahhaah thx .. WORKING (:
-
(Andi1999) DELETED by Andi1999
Kristoffer .. Now working, was my mistake (:
Quote :level = 0
tempDistance = C.TotalDistance

while tempDistance >= 50 do
tempDistance -= 50
level++
end

putyourbuttonhere("Level: " + level)

This will auto "increase" your level for each 50km
Or you can also add
hardness = 1 //outside of the loop
and then inside the loop
tempDistance -= hardness * 50
hardness ++
Thx Big grin

Remember UC InSim [SOLVED]
(9 posts, started )
FGED GREDG RDFGDR GSFDG