The online racing simulator
Distance Help Library Insim.net
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
We cannot help you if you don't tell us what do you want the code to do and what it is actually doing. Are you trying to make a total distance counter? Does your code crash in the for loop?
Quote from MadCatX :We cannot help you if you don't tell us what do you want the code to do and what it is actually doing. Are you trying to make a total distance counter? Does your code crash in the for loop?

I want to add the total distance made with the program tool
long TotalDistance = FileInfo.GetUserDistance(Username);
InSim.Send_BTN_CreateButton("^4> ^7Cash: ^2$" + Cash + " ^7Bank Balance: ^2$" + BBal + " ^7Distance: ^2" + TotalDistance / 1000 + " km ^7/ ^2" + TotalDistance / 1609 + " mi", Flags.ButtonStyles.ISB_LEFT | Flags.ButtonStyles.ISB_C1, 5, 70, 65, 54, 34, (Conn.UniqueID), 2, false);
Quote from developer346 :long TotalDistance = FileInfo.GetUserDistance(Username);

Quote from developer346 :InSim.Send_BTN_CreateButton("^4> ^7Cash: ^2$" + Cash + " ^7Bank Balance: ^2$" + BBal + " ^7Distance: ^2" + TotalDistance / 1000 + " km ^7/ ^2" + TotalDistance / 1609 + " mi", Flags.ButtonStyles.ISB_LEFT | Flags.ButtonStyles.ISB_C1, 5, 70, 65, 54, 34, (Conn.UniqueID), 2, false);

tanımlanan getuserdistance ve username bende yok ve yazdığın kütüphane lfsexternal boşa yazma

more non-code lfs external library

I need insim.net library
I need more open code
-
(sreedoohum) DELETED by Scawen : spam including a hidden link

FGED GREDG RDFGDR GSFDG