Skip to content

Commit

Permalink
FIX: buggy default OnConfigsExecuted() from amxx (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
wopox1337 authored Dec 3, 2021
1 parent d2303a9 commit 47c6820
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion cstrike/addons/amxmodx/scripting/CA_Storage_CSBans.sma
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <amxmodx>
#include <amxmisc>
#include <sqlx>

#include <cellqueue>
Expand Down Expand Up @@ -49,9 +50,11 @@ public plugin_init() {

g_queueLoad = QueueCreate(MAX_AUTHID_LENGTH)
g_queueSave = QueueCreate(gagData_s)

set_task_ex(6.274, "_OnConfigsExecuted")
}

public OnConfigsExecuted() {
public _OnConfigsExecuted() {
g_tuple = SQL_MakeDbTuple(ca_storage_host, ca_storage_user, ca_storage_pass, ca_storage_dbname)

Storage_Create()
Expand Down
5 changes: 4 additions & 1 deletion cstrike/addons/amxmodx/scripting/CA_Storage_GameCMS.sma
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <amxmodx>
#include <amxmisc>
#include <sqlx>

#include <cellqueue>
Expand Down Expand Up @@ -51,9 +52,11 @@ public plugin_init() {

g_queueLoad = QueueCreate(MAX_AUTHID_LENGTH)
g_queueSave = QueueCreate(gagData_s)

set_task_ex(6.274, "_OnConfigsExecuted")
}

public OnConfigsExecuted() {
public _OnConfigsExecuted() {
g_tuple = SQL_MakeDbTuple(ca_storage_host, ca_storage_user, ca_storage_pass, ca_storage_dbname)
SQL_SetCharset(g_tuple, "utf8")

Expand Down
5 changes: 4 additions & 1 deletion cstrike/addons/amxmodx/scripting/CA_Storage_PGBans.sma
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <amxmodx>
#include <amxmisc>
#include <sqlx>
#include <cellqueue>
#include <ChatAdditions>
Expand Down Expand Up @@ -46,9 +47,11 @@ public plugin_init()

g_queueLoad = QueueCreate(MAX_AUTHID_LENGTH);
g_queueSave = QueueCreate(gagData_s);

set_task_ex(6.274, "_OnConfigsExecuted")
}

public OnConfigsExecuted()
public _OnConfigsExecuted()
{
g_tuple = SQL_MakeDbTuple(pgb_storage_host, pgb_storage_user, pgb_storage_pass, pgb_storage_dbname);

Expand Down

0 comments on commit 47c6820

Please sign in to comment.