Skip to content
This repository was archived by the owner on Nov 2, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions scripting/csstatsx_sql.sma
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* CSStatsX SQL v. 0.7.4+2
* CSStatsX SQL v. 0.7.4+3
* by serfreeman1337 https://github.com/serfreeman1337
*/

Expand All @@ -17,10 +17,10 @@
#include <fakemeta>

#define PLUGIN "CSStatsX SQL"
#define VERSION "0.7.4+2"
#define VERSION "0.7.4+3"
#define AUTHOR "serfreeman1337"

#define LASTUPDATE "14, May(05), 2019"
#define LASTUPDATE "22, March(03), 2020"

#if AMXX_VERSION_NUM < 183
#define MAX_PLAYERS 32
Expand Down Expand Up @@ -1504,7 +1504,7 @@ public plugin_end()
// выполняем накопившиеся запросы при смене карты или выключении серваре
DB_FlushQuery()

if(sql_con != Empty_Handle) {
if(sql != Empty_Handle) {
SQL_FreeHandle(sql)
}

Expand Down Expand Up @@ -3129,7 +3129,7 @@ public SQL_Handler(failstate,Handle:sqlQue,err[],errNum,data[],dataSize){
new lastQue[QUERY_LENGTH]
SQL_GetQueryString(sqlQue,lastQue,charsmax(lastQue)) // узнаем последний SQL запрос

log_amx("SQL query failed")
log_amx("SQL query failed @ SQL_Handler(...)")
log_amx("[ %d ] %s",errNum,err)
log_amx("[ SQL ] %s",lastQue)

Expand Down Expand Up @@ -4498,7 +4498,7 @@ public native_get_stats(plugin_id,params)
new errNum,err[256]
errNum = SQL_QueryError(sqlQue,err,charsmax(err))

log_amx("SQL query failed")
log_amx("SQL query failed @ native_get_stats(...)")
log_amx("[ %d ] %s",errNum,err)
log_amx("[ SQL ] %s",query)

Expand Down Expand Up @@ -4616,7 +4616,7 @@ public native_get_stats2(plugin_id,params)
new errNum,err[256]
errNum = SQL_QueryError(sqlQue,err,charsmax(err))

log_amx("SQL query failed")
log_amx("SQL query failed @ native_get_stats2(...)")
log_amx("[ %d ] %s",errNum,err)
log_amx("[ SQL ] %s",query)

Expand Down Expand Up @@ -4776,7 +4776,7 @@ public native_get_stats3(plugin_id,params)
new errNum,err[256]
errNum = SQL_QueryError(sqlQue,err,charsmax(err))

log_amx("SQL query failed")
log_amx("SQL query failed @ native_get_stats3(...)")
log_amx("[ %d ] %s",errNum,err)
log_amx("[ SQL ] %s",query)

Expand Down Expand Up @@ -4957,7 +4957,7 @@ public DB_OpenConnection()

if(errNum)
{
log_amx("SQL query failed")
log_amx("SQL query failed @ DB_OpenConnection()")
log_amx("[ %d ] %s",errNum,err)

return false
Expand Down