Skip to content

Commit

Permalink
Merge pull request #24 from ArKaNeMaN/master
Browse files Browse the repository at this point in the history
Fix compiling and gh action
  • Loading branch information
ufame authored Dec 5, 2024
2 parents d7c6577 + 0cd7c48 commit b9dd042
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
5 changes: 3 additions & 2 deletions scripting/player_prefs.sma
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down Expand Up @@ -456,6 +456,7 @@ ConnectionTest() {
return;
}

SQL_FreeHandle(hConnection);
log_amx("[PP] Connection to database successfully estabilished");

formatex(g_szQuery, charsmax(g_szQuery),
Expand Down

0 comments on commit b9dd042

Please sign in to comment.