mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-05 23:03:20 +00:00
Fix error on manual ban
This commit is contained in:
parent
e6a638de7e
commit
2013d0c7bc
2 changed files with 2 additions and 2 deletions
Binary file not shown.
|
@ -98,7 +98,7 @@ public Action OnBanIdentity(const char[] identity, int time, int flags, const ch
|
|||
|
||||
g_db.Format(query, sizeof(query), "INSERT INTO bans"
|
||||
..."(steamid, reason, expires, executor, flags, timestamp)"
|
||||
..."VALUES ('%s', '%s', %s, '%s', %d, UNIX_TIMESTAMP)",
|
||||
..."VALUES ('%s', '%s', %s, '%s', %d, UNIX_TIMESTAMP())",
|
||||
identity,
|
||||
reason,
|
||||
expiresDate,
|
||||
|
@ -238,7 +238,7 @@ public void DB_OnConnectCheck(Database db, DBResultSet results, const char[] err
|
|||
public_message = reason;
|
||||
}
|
||||
|
||||
int id = results.FetchInt(4);
|
||||
int id = results.FetchInt(6);
|
||||
|
||||
if(hKickType.IntValue > 0) {
|
||||
if(public_message[0] != '\0')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue