anyone have a fix for it? *bump *
foreach (clsPlayer Ply in Players)
for (int i = (MCI.Info[0].PLID); i < Players.Count; i++)
{
InSim.Send_BTN_CreateButton((MCI.Info[i].Speed / 145) + "MPH", Flags.ButtonStyles.ISB_DARK, 5, 20, 80, 170, 110, MCI.Info[GetConnIdx(Ply.PlayerID)].PLID, 111, false);
InSim.Send_BTN_CreateButton((MCI.Info[i].Speed / 91) + "KM/H", Flags.ButtonStyles.ISB_DARK, 5, 20, 85, 170, 112, MCI.Info[GetConnIdx(Ply.PlayerID)].PLID, 113, false);
InSim.Send_BTN_CreateButton("^1X: " + (MCI.Info[i].X), Flags.ButtonStyles.ISB_DARK, 5, 20, 90, 170, 114, MCI.Info[GetConnIdx(Ply.PlayerID)].PLID, 115, false);
InSim.Send_BTN_CreateButton("^2Y: " + (MCI.Info[i].Y), Flags.ButtonStyles.ISB_DARK, 5, 20, 95, 170, 116, MCI.Info[GetConnIdx(Ply.PlayerID)].PLID, 117, false);
InSim.Send_BTN_CreateButton("^7Section: " + (MCI.Info[i].Node), Flags.ButtonStyles.ISB_DARK, 5, 20, 100, 170, 118, MCI.Info[GetConnIdx(Ply.PlayerID)].PLID, 119, false);
if ((MCI.Info[i].Node >= 136) && (MCI.Info[i].Node <= 188))
InSim.Send_BTN_CreateButton("^2Location: CorkScrew", Flags.ButtonStyles.ISB_DARK, 10, 40, 70, 150, 120, MCI.Info[GetConnIdx(Ply.PlayerID)].PLID, 121, false);
if ((MCI.Info[i].Node >= 188) && (MCI.Info[i].Node <= 230))
InSim.Send_BTN_CreateButton("^2Location: Sharpe Corner", Flags.ButtonStyles.ISB_DARK, 10, 40, 70, 150, 120, MCI.Info[GetConnIdx(Ply.PlayerID)].PLID, 121, false);
if ((MCI.Info[i].Node >= 230) && (MCI.Info[i].Node <= 288))
InSim.Send_BTN_CreateButton("^2Location: Vane Lane", Flags.ButtonStyles.ISB_DARK, 10, 40, 70, 150, 120, MCI.Info[GetConnIdx(Ply.PlayerID)].PLID, 121, false);
if ((MCI.Info[i].Node >= 288) && (MCI.Info[i].Node <= 320))
InSim.Send_BTN_CreateButton("^2Location: The HammerHead", Flags.ButtonStyles.ISB_DARK, 10, 40, 70, 150, 120, MCI.Info[GetConnIdx(Ply.PlayerID)].PLID, 121, false);
if ((MCI.Info[i].Node >= 320) && (MCI.Info[i].Node <= 360))
InSim.Send_BTN_CreateButton("^2Location: Road 328", Flags.ButtonStyles.ISB_DARK, 10, 40, 70, 150, 120, MCI.Info[GetConnIdx(Ply.PlayerID)].PLID, 121, false);
if ((MCI.Info[i].Node >= 360) && (MCI.Info[i].Node <= 407))
InSim.Send_BTN_CreateButton("^2Location: Drift Corner", Flags.ButtonStyles.ISB_DARK, 10, 40, 70, 150, 120, MCI.Info[GetConnIdx(Ply.PlayerID)].PLID, 121, false);
if ((MCI.Info[i].Node >= 407) && (MCI.Info[i].Node <= 491))
InSim.Send_BTN_CreateButton("^2Location: Road 485", Flags.ButtonStyles.ISB_DARK, 10, 40, 70, 150, 120, MCI.Info[GetConnIdx(Ply.PlayerID)].PLID, 121, false);
if ((MCI.Info[i].Node >= 491) && (MCI.Info[i].Node <= 581))
InSim.Send_BTN_CreateButton("^2Location: The Curves", Flags.ButtonStyles.ISB_DARK, 10, 40, 70, 150, 120, MCI.Info[GetConnIdx(Ply.PlayerID)].PLID, 121, false);
if ((MCI.Info[i].Node >= 581) && (MCI.Info[i].Node <= 691))
InSim.Send_BTN_CreateButton("^2Location: The Big W", Flags.ButtonStyles.ISB_DARK, 10, 40, 70, 150, 120, MCI.Info[GetConnIdx(Ply.PlayerID)].PLID, 121, false);
if ((MCI.Info[i].Node >= 0) && (MCI.Info[i].Node <= 34))
InSim.Send_BTN_CreateButton("^2Location: The Big W", Flags.ButtonStyles.ISB_DARK, 10, 40, 70, 150, 120, MCI.Info[GetConnIdx(Ply.PlayerID)].PLID, 121, false);
if ((MCI.Info[i].Node >= 34) && (MCI.Info[i].Node <= 136))
InSim.Send_BTN_CreateButton("^2Location: The Dire Straits", Flags.ButtonStyles.ISB_DARK, 10, 40, 70, 150, 120, MCI.Info[GetConnIdx(Ply.PlayerID)].PLID, 121, false);
}
InSim.Send_MTC_MessageToConnection("Line 1", MSO.UCID, 0);
InSim.Send_MTC_MessageToConnection("Line 2", MSO.UCID,0);
System.Timers.Timer BackUp = new System.Timers.Timer(300000);
void BackUp_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
foreach (clsConnection C in Connections)
FileInfo.UpdateUserLeave(C.Username, C.Cash, C.Cars);
}