From df4e7aa40dca6165572f99fda434c6b44f643424 Mon Sep 17 00:00:00 2001 From: ArKaNeMaN Date: Thu, 5 Dec 2024 16:16:01 +0300 Subject: [PATCH 1/2] Fix compilation --- scripting/player_prefs.sma | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripting/player_prefs.sma b/scripting/player_prefs.sma index c01c4a4..55d0bdf 100644 --- a/scripting/player_prefs.sma +++ b/scripting/player_prefs.sma @@ -102,9 +102,9 @@ public bool: native_get_preference(iPlugin, iArgs) { get_string(arg_key, szKey, charsmax(szKey)); - if (g_tPlayerPreferences[iPlayer] !== Invalid_Trie && TrieKeyExists(g_tPlayerPreferences[iPlayer], szKey)) { + if (g_tPlayerPreferences[iPlayer] != Invalid_Trie && TrieKeyExists(g_tPlayerPreferences[iPlayer], szKey)) { TrieGetString(g_tPlayerPreferences[iPlayer], szKey, szValue, charsmax(szValue)); - } else if (g_tKeys !== Invalid_Trie && TrieKeyExists(g_tKeys, szKey)) { + } else if (g_tKeys != Invalid_Trie && TrieKeyExists(g_tKeys, szKey)) { TrieGetString(g_tKeys, szKey, szValue, charsmax(szValue)); } @@ -456,6 +456,7 @@ ConnectionTest() { return; } + SQL_FreeHandle(hConnection); log_amx("[PP] Connection to database successfully estabilished"); formatex(g_szQuery, charsmax(g_szQuery), From 0cd7c48bdff6294b91e0f035ce2e9f24eba05363 Mon Sep 17 00:00:00 2001 From: ArKaNeMaN Date: Thu, 5 Dec 2024 16:17:12 +0300 Subject: [PATCH 2/2] Fix compiled plugin coping in gh action --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e3b9ac2..4fad430 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -79,6 +79,7 @@ jobs: mkdir -p $package_amxmodx_path mv configs $package_amxmodx_path mv scripting $package_amxmodx_path + mv plugins $package_amxmodx_path mv migrations publish/ mv readme.md publish/