mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-05 21:13:21 +00:00
Properly recorded times_tried
This commit is contained in:
parent
ebad0b40d2
commit
e82a7a9eb2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue