Hi,
My code What am I doing wrong?
if (Speed > 0)
{
var x2 = Convert.ToDouble(info.X);
var y2 = Convert.ToDouble(info.Y);
var z2 = Convert.ToDouble(info.Z);
var distance = MathHelper.Distance(
info.X,
info.Y,
info.Z,
x2,
y2,
z2
);
distance += MathHelper.LengthToMeters(distance);
double clock = distance / 1000;
string[] Distance =
{
string.Format("Distance: ^7" + clock.ToString("F2") + " ^2Km/h"),
};
for (byte i = 0, id = 15, top = 12; i < Distance.Length; i++, id++, top += 5)
{
//button code
}
}
emergency aid
Last edited by brkbsmci0606, .