From c585d124fc6fefbfe1c382b947b1ea918e0d00cf Mon Sep 17 00:00:00 2001 From: jenz Date: Mon, 24 Apr 2023 23:15:04 +0200 Subject: [PATCH] maybe needed check --- event_notification/scripting/event_notifier.sp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/event_notification/scripting/event_notifier.sp b/event_notification/scripting/event_notifier.sp index fc591ade..13337ec6 100644 --- a/event_notification/scripting/event_notifier.sp +++ b/event_notification/scripting/event_notifier.sp @@ -19,7 +19,10 @@ public Plugin myinfo = public void OnPluginStart() { - Database.Connect(SQL_OnDatabaseConnect, "Event_notifier"); + if (!g_hDatabase) + { + Database.Connect(SQL_OnDatabaseConnect, "Event_notifier"); + } RegConsoleCmd("sm_event", Command_Event_notifier, "Display infos about the next event"); RegConsoleCmd("sm_events", Command_Event_notifier, "Display infos about the next event"); }