mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 11:53:21 +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"
|
g_db.Format(query, sizeof(query), "INSERT INTO bans"
|
||||||
..."(steamid, reason, expires, executor, flags, timestamp)"
|
..."(steamid, reason, expires, executor, flags, timestamp)"
|
||||||
..."VALUES ('%s', '%s', %s, '%s', %d, UNIX_TIMESTAMP)",
|
..."VALUES ('%s', '%s', %s, '%s', %d, UNIX_TIMESTAMP())",
|
||||||
identity,
|
identity,
|
||||||
reason,
|
reason,
|
||||||
expiresDate,
|
expiresDate,
|
||||||
|
@ -238,7 +238,7 @@ public void DB_OnConnectCheck(Database db, DBResultSet results, const char[] err
|
||||||
public_message = reason;
|
public_message = reason;
|
||||||
}
|
}
|
||||||
|
|
||||||
int id = results.FetchInt(4);
|
int id = results.FetchInt(6);
|
||||||
|
|
||||||
if(hKickType.IntValue > 0) {
|
if(hKickType.IntValue > 0) {
|
||||||
if(public_message[0] != '\0')
|
if(public_message[0] != '\0')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue