Участник
Пользователь
- Сообщения
- 345
- Реакции
- 77
- Помог
- 14 раз(а)
- Ошибка
-
Не сохраняются деньги, ошибок нет
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.8.3-dev+5154 (http://www.amxmodx.org)
Authors:
David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko
Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom
Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher
Borja "faluco" Ferrer, Scott "DS" Ehlert
Compiled: Mar 9 2018 10:40:21
Built from: https://github.com/alliedmodders/amxmodx/commit/2559fcf
Build ID: 5154:2559fcf
Core mode: JIT+ASM32
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.4.0.653-dev
Build date: 10:42:01 May 22 2018 (1501)
Build from: https://github.com/dreamstalker/rehlds/commit/87a2d17
- ReGamedll
-
ReGameDLL version: 5.7.0.312-dev
Build date: 07:53:34 May 31 2018
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/26db32e
- Версия Metamod
-
Metamod-r v1.3.0.127, API (5:13)
Metamod-r build: 10:49:17 Jun 15 2018
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/0fff979
- Список метамодулей
-
[ 1] Reunion RUN - reunion_mm_i386.so v0.1.0.92 ini Start Never
[ 2] ProcessCmds RUN - processcmds_mm_i386.so v1.1.4 ini Start Never
[ 3] hackdetector RUN - hackdetector_amxx_i386.so v0.15.328.lite ini ANY ANY
[ 4] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC3 ini ANY ANY
[ 5] AMX Mod X RUN - amxmodx_mm_i386.so v1.8.3-dev+5154 ini Start ANY
[ 6] FakeMeta RUN - fakemeta_amxx_i386.so v1.8.3-dev+5154 pl5 ANY ANY
[ 7] MySQL RUN - mysql_amxx_i386.so v1.8.3-dev+5154 pl5 ANY ANY
[ 8] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.8.3-dev+5154 pl5 ANY ANY
[ 9] ReAPI RUN - reapi_amxx_i386.so v5.6.0.157-dev pl5 ANY Never
[10] CStrike RUN - cstrike_amxx_i386.so v1.8.3-dev+5154 pl5 ANY ANY
[11] Engine RUN - engine_amxx_i386.so v1.8.3-dev+5154 pl5 ANY ANY
[12] Fun RUN - fun_amxx_i386.so v1.8.3-dev+5154 pl5 ANY ANY
12 plugins, 12 running
- Список плагинов
-
[ 1] FreshBans 1.4.0b kanagava fresh_bans_140_ running
[ 2] DopBan 2.8.2b kanagava dop_ban.amxx running
[ 3] Aliases checker 0.8.2 kanagava alias_detector0 running
[ 4] admin_loader 0.3.7 kanagava admin_loader_fo running
[ 5] CSStatsX SQL 0.7.4 serfreeman1337 csstatsx_sql.am running
[ 6] Stats Configuration 1.8.3-dev+ AMXX Dev Team statscfg.amxx running
[ 7] Ultimate Chats Control 4.1 neygomon ucc.amxx running
[ 8] Admin Commands 1.8.3-dev+ AMXX Dev Team admincmd.amxx running
[ 9] Maps Menu 1.4.1 neugomon mapsmenu.amxx running
[ 10] Players Menu 1.7 neugomon players_menu.am running
[ 11] Menus Front-End 1.5 neugomon menufront_end.a running
[ 12] Shop for Knife 1.0 bristol shop_knife.amxx running
[ 13] Knife DeathMatch: VIP 1.0.3 Salvatore vipmenu.amxx running
[ 14] [Reapi] Custom Models 1.6.1 neygomon custom_models.a running
[ 15] Spec Money Save 0.2 F@nt0M spec_money_save running
[ 16] DemoRecoder 1.1 neygomon amx_demorec.amx running
[ 17] Ping Checker 26.0.1 RC1 h1k3 ping_checker.am running
[ 18] Kill Distance (mod) 0.3f Nightscream kill_distance_m running
[ 19] menu 0.0.1 adding kolokol menu.amxx running
[ 20] Auto Team Balance Adva 1.5.1 Radius auto_team_balan running
[ 21] NoRound Balancer 1.3a neygomon noround_balance running
[ 22] [SWPlug] Knife Duel 1.0a Trendy swp.amxx running
[ 23] resetscore(ReAPI) 1.0 Phantom resetscore.amxx running
[ 24] Train Killer 1.0 Pastout! trainkiller_1.a running
[ 25] Camera Changer 1.3 Bl0ck Camera_Changer. running
[ 26] Super Bunny Hopper 1.3 Cheesy Peteza bunnyhop.amxx running
[ 27] Hook 1.0 xxx hook.amxx running
[ 28] [183] Ultimate Grab 18.03.23 Ian Cammarata & ultimate_grab.a running
[ 29] Adverts 1.0 pUzzlik adverts_message running
[ 30] FrostNades 2.09 Avalanche frostnades.amxx running
[ 31] unknown unknown unknown save_money.amxx running
[ 32] Parachute for ALL [ReA 3.0 Leo_[BH] parachute.amxx running
[ 33] Plugins Controller 1.0 neygomon plugins_control stopped
[ 34] [ReAPI] Block 'Fire in 0.0.1 sergrib reapi_block_FIT running
[ 35] Radio Block 1.0 alliedmods Block_Radio_nor running
[ 36] NameChangeTime 0.0.1 Vaqtincha changenick.amxx running
[ 37] Chat Manager 1.1.1-11 Mistrick chatmanager.amx running
[ 38] Advanced Experience Sy 0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 39] AES: CStrike Addon 0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 40] AES: Informer 0.5.9 [REA serfreeman1337/s aes_informer.am running
[ 41] AES: StatsX 0.5.9 [REA serfreeman1337/s aes_statsx_cstr running
[ 42] Map Manager: Core 3.0.0-Beta Mistrick map_manager_cor running
[ 43] Map Manager: Scheduler 0.0.8 Mistrick map_manager_sch running
[ 44] Map Manager: Rtv 0.0.3 Mistrick map_manager_rtv running
[ 45] Map Manager: BlockList 0.0.3 Mistrick map_manager_blo running
[ 46] Map Manager: Effects 0.0.6 Mistrick map_manager_eff running
[ 47] Map Manager: Informer 0.0.4 Mistrick map_manager_inf running
47 plugins, 46 running
- Автор плагина
- neygomon
- Версия плагина
- 1.0
- Исходный код
-
#include amxmodx
#include reapi
#include sqlx
/* Mysql Data */
new Handle:g_sql_tuple, szQuery[512], data[2];
/* Player Data */
new g_pSteamId[33][25];
public plugin_init()
set_task(1.0, "PluginCfg");
public PluginCfg()
{
new szHost[64], szUser[32], szPasswd[32], szDb[32];
get_cvar_string("", szHost, charsmax(szHost));
get_cvar_string("", szUser, charsmax(szUser));
get_cvar_string("", szPasswd, charsmax(szPasswd));
get_cvar_string("", szDb, charsmax(szDb));
g_sql_tuple = SQL_MakeDbTuple(szHost, szUser, szPasswd, szDb);
formatex(szQuery, charsmax(szQuery),
"CREATE TABLE IF NOT EXISTS `money_manager` ( \
`id` int(11) NOT NULL AUTO_INCREMENT, \
`steamid` varchar(25) NOT NULL, \
`money` int(11) NOT NULL, \
PRIMARY KEY (`id`), \
UNIQUE KEY `steamid` (`steamid`) \
) ENGINE=MyISAM DEFAULT CHARSET=utf8;");
SQL_ThreadQuery(g_sql_tuple, "SQL_HandlerSave", szQuery, data, sizeof(data));
}
public client_putinserver(id)
{
get_user_authid(id, g_pSteamId[id], charsmax(g_pSteamId[]));
formatex(szQuery, charsmax(szQuery), "SELECT `money` FROM `money_manager` WHERE `steamid` = '%s'", g_pSteamId[id]);
data[0] = id; SQL_ThreadQuery(g_sql_tuple, "SQL_HandlerLoad", szQuery, data, sizeof(data));
}
#if AMXX_VERSION_NUM < 183
#define client_disconnected client_disconnect
#endif
public client_disconnected(id)
{
new money = get_member(id, m_iAccount);
formatex(szQuery, charsmax(szQuery), "INSERT INTO `money_manager` (`steamid`, `money`) VALUES ('%s', '%d') ON DUPLICATE KEY UPDATE `money` = '%d'", g_pSteamId[id], money, money);
data[0] = id; SQL_ThreadQuery(g_sql_tuple, "SQL_HandlerSave", szQuery, data, sizeof(data));
}
public SQL_HandlerLoad(failstate, Handle:query, err[], errcode, data[], datasize)
{
if(SQL_NumResults(query))
rg_add_account(data[0], SQL_ReadResult(query, 0), AS_SET);
return PLUGIN_CONTINUE;
}
public SQL_HandlerSave(failstate, Handle:query, err[], errcode, data[], datasize)
return PLUGIN_CONTINUE;
public plugin_end()
SQL_FreeHandle(g_sql_tuple);
Приветствую.
Поставил данный плагин на сервер, зашел, взял деньги через vipmenu, сменил карту - денег нет. Так же и после retry - деньги не сохранились.
Проверил бд, в бд записей нет.
Поставил данный плагин на сервер, зашел, взял деньги через vipmenu, сменил карту - денег нет. Так же и после retry - деньги не сохранились.
Проверил бд, в бд записей нет.
В этой теме было размещено решение! Перейти к решению.