From e82a7a9eb2c3c4a352636e842737d591320d8ae4 Mon Sep 17 00:00:00 2001 From: Jackz Date: Thu, 18 Nov 2021 10:31:03 -0600 Subject: [PATCH] Properly recorded times_tried --- scripting/globalbans.sp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripting/globalbans.sp b/scripting/globalbans.sp index 3ec0e14..9c7c38a 100644 --- a/scripting/globalbans.sp +++ b/scripting/globalbans.sp @@ -176,7 +176,7 @@ public void DB_OnConnectCheck(Database db, DBResultSet results, const char[] err PrintChatToAdmins("%N was banned from this server for: \"%s\"", client, reason); } static char query[128]; - g_db.Format(query, sizeof(query), "UPDATE bans SET times_tried=times_tried+1 WHERE steamid = ?", steamid); + g_db.Format(query, sizeof(query), "UPDATE bans SET times_tried=times_tried+1 WHERE steamid = '%s'", steamid); g_db.Query(DB_OnBanQuery, query); }else{ DeleteBan(steamid);