The online racing simulator
.
.
-
Next question (Heiko1) DELETED by Heiko1
Quote from Heiko1 :And my problem is now:
How i can save the counted Kilometers?

Write them to a text file?
-
(Heiko1) DELETED by Heiko1
In C#...

float km = 57465.0f;
string path = "file.txt";

// Write to file
using (System.IO.StreamWriter sw = new System.IO.StreamWriter(path))
{
sw.WriteLine(km);
}

// Read from file
using (System.IO.StreamReader sr = new System.IO.StreamReader(path))
{
km = float.Parse(sr.ReadLine());
}

-
(Heiko1) DELETED by Heiko1
-
(Heiko1) DELETED by Heiko1
It's kind of impossible to say without seeing the relevant code to be honest. It's very difficult to guess what the possible problems might be in code you've never seen.

Anyway, you could open up the text file to see if the correct values are actually being stored. If not then you know it's a problem with the way your storing it. If they are then it's probably a problem with the way you're reading it out.
Quote from Heiko1 :erm got a problem.

It dont save the Counted Kilometer at every reconect it stand there Km: 0.00

Please Help me!

Have you put something in that saves it every so often? or just when they disconnect that might help if u havnt done that
It's easiest if you add a new line into FileInfo.UpdateUserLeave that saves the KM, and make it take a new argument (specified in the bit in brackets at the top...)

I'm never too great at describing things, but I hope that helps

FGED GREDG RDFGDR GSFDG