The online racing simulator
[C#] I need a little help
(3 posts, started )
[C#] I need a little help
Hello

I need some help with insim interface, so i have this code and i don't know how to do both at the same time arise:

#region ' Distance Meter '

if (C.Odometer == 0)
{
if (C.Counter == 0)
{
InSim.Send_BTN_CreateButton("^6Total: " + C.TotalDistance / 1000 + " ^J‡q", Flags.ButtonStyles.ISB_DARK, 4, 18, 2, 83, 3, C.UniqueID, 2, true);
}
else if (C.Counter == 1)
{
InSim.Send_BTN_CreateButton("^6Total: " + C.TotalDistance / 1609 + " mi", Flags.ButtonStyles.ISB_DARK, 4, 18, 2, 83, 3, C.UniqueID, 2, true);
}
}
else if (C.Odometer == 1)
{
if (C.Counter == 1)
{
InSim.Send_BTN_CreateButton("^6Trip: ^6" + string.Format("{0:#,##0.0}", C.TripMeter / 1000) + " ^7km's", Flags.ButtonStyles.ISB_LEFT, 4, 18, 5, 83, 5, C.UniqueID, 2, true);
}
}

#endregion

Anyone please Big grin
-
(MariusMM) DELETED by MariusMM
I want to appear in interface total and trip at the same time
-
(MariusMM) DELETED by MariusMM

[C#] I need a little help
(3 posts, started )
FGED GREDG RDFGDR GSFDG