From 6b3d5a615b52b07469d11827bc2d7908ce48a230 Mon Sep 17 00:00:00 2001 From: jenz Date: Mon, 24 Apr 2023 23:21:17 +0200 Subject: [PATCH] maybe needed check --- commands_list/scripting/commands_info.sp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands_list/scripting/commands_info.sp b/commands_list/scripting/commands_info.sp index 10e098d3..435a634e 100644 --- a/commands_list/scripting/commands_info.sp +++ b/commands_list/scripting/commands_info.sp @@ -25,7 +25,10 @@ public void OnMapStart() public void OnPluginStart() { - Database.Connect(SQL_OnDatabaseConnect, "racetimercss"); + if (!g_hDatabase) + { + Database.Connect(SQL_OnDatabaseConnect, "racetimercss"); + } } public void SQL_OnDatabaseConnect(Database db, const char[] error, any data)