public static void Init() { Console.WriteLine("\n[MySQL] Подключение к Базе Данных..."); try { connection = new MySqlConnection(myConnectionString); connection.Open(); Debug(0, "[MySQL] База Данных успешно подключена!\n"); DoorService.LoadAllDoorsFromDB(); } catch (MySqlException error) { Debug(1, "[MySQL] MySQL error: (#" + error.Number + ") " + error.Message + "\n"); } }
public void LoadAllMySQLInformations() { ATMService.LoadAllATMs(); BlipService.LoadCustomBlipsFromDatabase(); ClothingService.LoadAllClothing(); ItemService.LoadItemsFromDB(); ShopService.LoadShopsFromDB(); GarageService.LoadAllGarageFromDB(); VehicleService.ResetAllVehicles(); GasStationService.LoadAllGasStationsFromDB(); VehicleService.LoadVehicleInformationsFromDB(); VehicleShopService.LoadAllVehicleShopsFromDB(); DoorService.LoadAllDoorsFromDB(); ClothingShopService.LoadAllClothingShopsFromDB(); API.delay(3000, true, () => { API.setServerPassword(oldServerPassword); API.consoleOutput("Server is now unlocked.."); }); }
public void LoadAllMySQLInformations() { DoorService.LoadAllDoorsFromDB(); Arcadia.Server.Services.StorageService.LoadAllStoragesFromDB(); }