the conn.compcar gives an error
// City Bank
int BankDist = ((int)Math.Sqrt(Math.Pow(Conn.CompCar.X - (296 * 196608), 2) + Math.Pow(Conn.CompCar.Y - (-331 * 196608), 2)) / 65536);
if (BankDist < 4 && (Conn.CompCar.Speed / 147) <= 3)
{
if (Conn.InBank == 0)
{
// <<Bank Display>>
InSim.Send_BTN_CreateButton("", Flags.ButtonStyles.ISB_DARK, 50, 100, 50, 50, 160, Conn.UniqueID, 2, false);
InSim.Send_BTN_CreateButton("", Flags.ButtonStyles.ISB_DARK, 50, 100, 50, 50, 161, Conn.UniqueID, 2, false);
InSim.Send_BTN_CreateButton("^7Welcome to City ^6Bank", Flags.ButtonStyles.ISB_LIGHT, 7, 98, 51, 51, 162, Conn.UniqueID, 2, false);
InSim.Send_BTN_CreateButton("^7Your bank balance is ^6€" + Conn.BankBalance, Flags.ButtonStyles.ISB_LEFT, 4, 40, 65, 54, 163, Conn.UniqueID, 2, false);
InSim.Send_BTN_CreateButton("^7Time until Bonus ^6" + Conn.Timer + "^6 Minute(s)", Flags.ButtonStyles.ISB_LEFT, 4, 40, 69, 54, 164, Conn.UniqueID, 2, false);
InSim.Send_BTN_CreateButton("^6Insert", "Enter amount to Insert", Flags.ButtonStyles.ISB_LIGHT | Flags.ButtonStyles.ISB_CLICK, 4, 10, 73, 54, 54, 165, Conn.UniqueID, 40, false);
InSim.Send_BTN_CreateButton("^6Withdraw", "Enter amount to Withdraw", Flags.ButtonStyles.ISB_LIGHT | Flags.ButtonStyles.ISB_CLICK, 4, 10, 73, 64, 64, 166, Conn.UniqueID, 2, false);
InSim.Send_BTN_CreateButton("^7CLOSE", Flags.ButtonStyles.ISB_LIGHT | Flags.ButtonStyles.ISB_CLICK, 4, 10, 92, 95, 167, Conn.UniqueID, 2, false);
Conn.InBank = 1;
}
}
else if (BankDist > 14 && Conn.InBank == 1)
{
Conn.InBank = 0;
// <<Bank Display Removal>>
InSim.Send_BFN_DeleteButton(Enums.BtnFunc.BFN_DEL_BTN, 160, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(Enums.BtnFunc.BFN_DEL_BTN, 161, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(Enums.BtnFunc.BFN_DEL_BTN, 162, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(Enums.BtnFunc.BFN_DEL_BTN, 163, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(Enums.BtnFunc.BFN_DEL_BTN, 164, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(Enums.BtnFunc.BFN_DEL_BTN, 165, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(Enums.BtnFunc.BFN_DEL_BTN, 166, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(Enums.BtnFunc.BFN_DEL_BTN, 167, Conn.UniqueID);
}
what i do?
all conn. gives an error