asla4ok
Пользователь
- Регистрация
- 15 Мар 2020
- Сообщения
- 90
- Симпатии
- 5
- Предупреждения
- 30
- OS
- Linux
- Amx Mod X
- AMXX 1.9.0
- Билд
- Build date: 03:14:15 Oct 25 2021 (2753)
- ReGamedll
- ReGameDLL version: 5.21.0.546-dev
- Metamod
- Metamod-r v1.3.0.128, API (5:13) Metamod-r build: 15:47:38 Aug 24 2018
- Meta модули
-
Код:[ 1] SafeNameAndChat RUN - SafeNameAndChat.so v1.2 Beta 3 ini ANY ANY
[ 2] Reunion RUN - reunion_mm_i386.so v0.1.92d ini Start Never
[ 3] Rechecker RUN - rechecker_mm_i386.so v2.7 ini Chlvl ANY
[ 4] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 5] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC3 ini ANY ANY
[ 6] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 7] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 8] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5294 ini Start ANY
[ 9] WHBlocker RUN - whblocker_mm_i386.so v1.5.697 ini Chlvl ANY
[10] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5294 pl8 ANY ANY
[11] MySQL RUN - mysql_amxx_i386.so v1.9.0.5294 pl8 ANY ANY
[12] ReAPI RUN - reapi_amxx_i386.so v5.21.0.252-dev pl8 ANY Never
[13] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5294 pl8 ANY ANY
[14] Engine RUN - engine_amxx_i386.so v1.9.0.5294 pl8 ANY ANY
[15] CSX RUN - csx_amxx_i386.so v1.9.0-dev+5210 pl8 ANY ANY
[16] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl8 ANY Never
[17] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5294 pl8 ANY ANY
[18] SxGeo RUN - sxgeo_amxx_i386.so v2.3 pl8 ANY Never
- Плагины
-
Код:[ 1] FreshBans 1.4.0b kanagava fresh_bans.amxx running
[ 2] [GM] VIP Test 1.2.0 [GM] NWC gm_vip_test.amx running
[ 3] [GM] Night VIP 1.1.1 [GM] NWC gm_night_vips.a running
[ 4] Top Awards 1.0 Dom1no_[KZ] top_awards.amxx debug
[ 5] Admin Loader 3.5 neygomon admin_loader.am running
[ 6] CSStatsX SQL 0.7.4+2 serfreeman1337 csstatsx_sql.am running
[ 7] Advanced Ultimate Weap 0.1.0b steelzzz auw.amxx running
[ 8] unknown unknown unknown ultimate_weapon running
[ 9] [190] VIP RBS 20.07.20 SKAJIbnEJIb vip_rbs.amxx running
[ 10] Admin Commands 1.9.0.5294 AMXX Dev Team admincmd.amxx running
[ 11] Commands Menu 1.9.0.5294 AMXX Dev Team cmdmenu.amxx running
[ 12] Players Menu 1.9.0.5294 AMXX Dev Team plmenu.amxx running
[ 13] Maps Menu 1.9.0.5294 AMXX Dev Team mapsmenu.amxx running
[ 14] Stats Configuration 1.9.0.5294 AMXX Dev Team statscfg.amxx running
[ 15] CS Stats Logging 1.9.0.5294 AMXX Dev Team stats_logging.a running
[ 16] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 17] AES: CStrike Addon 0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 18] Advanced Experience Sy 0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 19] AES: StatsX 0.5.9 [REA serfreeman1337/s aes_statsx_cstr running
[ 20] AES: Informer 0.5.9 [REA serfreeman1337/s aes_informer.am running
[ 21] AES: StatsX Info Rank 0.1 serfreeman1337 aes_statsx_rank running
[ 22] Say me and Say hp 1.4 neygomon sayme_reapi.amx running
[ 23] Advanced Gag 1.9.0 neygomon amx_gag.amxx running
[ 24] AFK Control ReNew 1.2(a) neygomon afk_control.amx running
[ 25] Lite VoteBan 1.4 neygomon lite_voteban.am running
[ 26] Demo Recorder 2.4.1 F@nt0M demo_recorder.a running
[ 27] Server Menu 1.5.0 F@nt0M server_menu.amx running
[ 28] ScreenMaker 1.1 neygomon screen_maker.am running
[ 29] Ping Control 1.31 neygomon Ping_Control.am running
[ 30] [ReAPI] AdminFreeLook 1.0 ReHLDS Team adminfreelook.a running
[ 31] Simple Damager 2.1.0 fl0wer simple_damager. running
[ 32] [ReAPI] No Team Flash 0.0.3 Vaqtincha no_team_flash.a running
[ 33] [ReAPI] Best player of 1.1.2 F@nt0M best_player_of_ running
[ 34] Advanced Kill Assists 1.3c Xelson next21_kill_ass running
[ 35] resetscore(ReAPI) 1.0 Phantom resetscore.amxx running
[ 36] NO_FITH_TEXT 1.1w perf No_fith_text.am running
[ 37] Parachute Lite [ReAPI] 11.0 Leo_[BH] parachute_lite. running
[ 38] Frags Counter 1.0 CHEL74 frags_counter.a running
[ 39] SF Bets 0.1.5 serfreeman1337 sf_bets.amxx running
[ 40] C4 Timer on roundtime 0.3.3a neygomon c4timer.amxx running
[ 41] [SxGeo] Connect Info 1.0 s1lent sxgeo_connect_i running
[ 42] ReChecker Logging 1.0 custom rc_logging.amxx running
[ 43] Mode 2x2 2.5re s1lent mode.amxx running
[ 44] [ReAPI] Healthnade 0.0.2 F@nt0M reapi_healthnad running
[ 45] unknown unknown unknown connect_music.a running
[ 46] Adverts 1.0 pUzzlik adverts_message running
[ 47] unknown unknown unknown knife_sound.amx running
[ 48] (ReAPI) Steam Bonus 07.05.2018 Dom1no_[KZ] steam_bonus.amx running
[ 49] Models Replacement 0.0.2+fix ConnorMcLeod | V models_replacem running
[ 50] Chat Manager 1.1.2-16 Mistrick chatmanager.amx running
[ 51] Items Restrict 1.1 s1lent items_restrict. running
[ 52] Custom Player Models A 0.2.1 F@nt0M & BlackSi custom_player_m running
[ 53] Custom Player Models C 0.2.2 BlackSignature custom_player_m running
[ 54] Custom Player Models T 0.2.1 BlackSignature custom_player_m running
[ 55] Map Manager: Core 3.1.4 Mistrick map_manager_cor running
[ 56] Map Manager: Scheduler 0.1.9 Mistrick map_manager_sch running
[ 57] Map Manager: Rtv 0.1.1 Mistrick map_manager_rtv running
[ 58] Map Manager: Nominatio 0.2.0 Mistrick map_manager_nom running
[ 59] Map Manager: BlockList 0.0.4 Mistrick map_manager_blo running
[ 60] Map Manager: Online so 0.0.4 Mistrick map_manager_onl running
[ 61] Map Manager: Effects 0.1.0 Mistrick map_manager_eff running
[ 62] Map Manager: Informer 0.0.5 Mistrick map_manager_inf running
[ 63] Map Manager: Sounds 0.0.1 Mistrick map_manager_sou running
63 plugins, 63 running
- Amxx Модули
-
Код:FakeMeta 1.9.0.5294 AMX Mod X Dev Team running
MySQL 1.9.0.5294 AMX Mod X Dev Team running
ReAPI 5.21.0.252 Asmodai & s1lent running
Ham Sandwich 1.9.0.5294 AMX Mod X Dev Team running
nVault 1.9.0.5294 AMX Mod X Dev Team running
Engine 1.9.0.5294 AMX Mod X Dev Team running
CSX 1.9.0-dev+ AMX Mod X Dev Team running
ReAimDetector 0.2.2 ReHLDS Team running
CStrike 1.9.0.5294 AMX Mod X Dev Team running
SxGeo 2.3 s1lent running
Sockets2 1.8.1.3746 HLSW Dev Team running
Всего 11 модулей
- Ошибка
-
Код:L 03/28/2022 - 21:24:12: [AMXX] [0] top_awards.sma::client_give_awards (line 118)
L 03/28/2022 - 21:24:12: [AMXX] Displaying debug trace (plugin "top_awards.amxx", version "1.0")
L 03/28/2022 - 21:24:12: [AMXX] Run time error 4: index out of bounds
- Исходник
-
Код:/*
Copyright by Dom1no_[KZ]
2019 © Нурбек Байтилесов | ВКонтакте
*/
#include <amxmodx>
#if AMXX_VERSION_NUM < 183
#include <colorchat>
#endif
#define PLUGIN "Top Awards"
#define VERSION "1.0"
#define AUTHOR "Dom1no_[KZ]"
/* Настройки */
#define IGNORE_FLAGS (ADMIN_MENU|ADMIN_LEVEL_C)
// Игнорируемые флаги
// Закоментируйте если не требуется
#define STATS_SYSTEM 2 // Система записи статистики
// 0 - CSX
// 1 - CsStats MySQL by SKAJIbnEJIb
// 2 - CsStatsX SQL by serfreeman1337
#define MAX_AWARDS 256
// Максимальная количество наград
const Float: TIME = 3.0;
// Задержка в секундах перед проверкой игрока
enum _ATA {
FLAGS[32],
MSG[128]
};
new g_arrAwardData[MAX_AWARDS][DATA], g_iDataSize = 1;
#if STATS_SYSTEM == 0
#include <csx>
#define get_player_stats get_user_stats
#endif
#if STATS_SYSTEM == 1
#include <csstats_mysql>
#endif
#if STATS_SYSTEM == 2
#include <csstatsx_sql>
#define get_player_stats get_user_stats_sql
#endif
public plugin_init(){
register_plugin(PLUGIN, VERSION, AUTHOR);
}
public plugin_cfg(){
new szPath[64];
get_localinfo("amxx_configsdir", szPath, charsmax(szPath));
add(szPath, charsmax(szPath), "/top_awards.ini");
new iFile = fopen(szPath, "rt");
if(!iFile){
new szError[96];
formatex(szError, charsmax(szError), "File '%s' not found OR incorrect CHMOD!", szPath);
set_fail_state(szError);
}
new szBuffer[MAX_AWARDS];
while(!feof(iFile)){
fgets(iFile, szBuffer, charsmax(szBuffer));
trim(szBuffer);
if(!szBuffer[0] || szBuffer[0] == ';')
continue;
if(parse(szBuffer,
g_arrAwardData[g_iDataSize][FLAGS], charsmax(g_arrAwardData[][FLAGS]),
g_arrAwardData[g_iDataSize][MSG], charsmax(g_arrAwardData[][MSG])
) == 2) g_iDataSize++;
}
fclose(iFile);
}
public client_putinserver(id){
set_task(TIME, "client_give_awards", id);
}
public client_give_awards(id){
new g_iAccess, szName[32];
g_iAccess = get_user_flags(id);
get_user_name(id, szName, charsmax(szName));
if(!is_user_connected(id)){
return;
}
#if defined IGNORE_FLAGS
if(g_iAccess & IGNORE_FLAGS){
return;
}
#endif
#if STATS_SYSTEM == 0 || STATS_SYSTEM == 2
new szStats[8];
new iRank = get_player_stats(id, szStats, szStats);
#else
new szStats[22];
new iRank = csstats_get_user_stats(id, szStats);
#endif
if(iRank <= g_iDataSize){
set_user_flags(id, g_iAccess | read_flags(g_arrAwardData[iRank][FLAGS]));
replace_all(g_arrAwardData[iRank][MSG], charsmax(g_arrAwardData[][MSG]), "!n", "^1");
replace_all(g_arrAwardData[iRank][MSG], charsmax(g_arrAwardData[][MSG]), "!t", "^3");
replace_all(g_arrAwardData[iRank][MSG], charsmax(g_arrAwardData[][MSG]), "!g", "^4");
replace_all(g_arrAwardData[iRank][MSG], charsmax(g_arrAwardData[][MSG]), "%name%", szName);
client_print_color(id, print_team_default, "%s", g_arrAwardData[iRank][MSG]);
}
else{
remove_user_flags(id, g_arrAwardData[iRank][FLAGS]);
}
}
Вот такой лог ошибки
L 03/28/2022 - 21:24:12: [AMXX] [0] top_awards.sma::client_give_awards (line 118)
L 03/28/2022 - 21:24:12: [AMXX] Displaying debug trace (plugin "top_awards.amxx", version "1.0")
L 03/28/2022 - 21:24:12: [AMXX] Run time error 4: index out of bounds
L 03/28/2022 - 21:24:12: [AMXX] [0] top_awards.sma::client_give_awards (line 118)
L 03/28/2022 - 21:24:12: [AMXX] Displaying debug trace (plugin "top_awards.amxx", version "1.0")
L 03/28/2022 - 21:24:12: [AMXX] Run time error 4: index out of bounds