Не работает плагин Best player of the round

Сообщения
43
Реакции
0
Помог
1 раз(а)
Ошибка
Плагин скомпилировался нормально без ошибок. Установил на сервер.
Но не работает[ 39] unknown unknown unknown best_player_of_ error
ОС
Linux
Amx Mod X
AMX Mod X 1.9.0.5249
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.4.0.668-dev
Build date: 09:47:42 Sep 29 2018 (1631)
Build from: https://github.com/dreamstalker/rehlds/commit/89be216
ReGamedll
ReGameDLL version: 5.9.0.366-dev
Версия Metamod
Metamod-r v1.3.0.128, API (5:13)
Список метамодулей
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] Reunion RUN - reunion_mm_i386.so v0.1.0.92 ini Start Never
[ 2] SafeNameAndChat RUN - SafeNameAndChat.so v1.2 Beta ini ANY ANY
[ 3] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 4] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC3 ini ANY ANY
[ 5] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 6] WHBlocker RUN - whblocker_mm_i386.so v1.5.696 ini Chlvl ANY
[ 7] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 8] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5249 ini Start ANY
[ 9] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5249 pl8 ANY ANY
[10] MySQL RUN - mysql_amxx_i386.so v1.9.0.5249 pl8 ANY ANY
[11] ReAPI RUN - reapi_amxx_i386.so v5.9.0.177-dev pl8 ANY Never
[12] CStrike RUN - cstrike_amxx_i386.so v1.8.2 pl8 ANY ANY
[13] Fun RUN - fun_amxx_i386.so v1.9.0.5249 pl8 ANY ANY
[14] Engine RUN - engine_amxx_i386.so v1.9.0.5249 pl8 ANY ANY
[15] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5249 pl8 ANY ANY
[16] CSX RUN - csx_amxx_i386.so v1.8.2 pl8 ANY ANY
Список плагинов
[  1] FreshBans               1.3.7b      kanagava          fresh_bans.amxx  running
[ 2] admin_loader 0.4 kanagava admin_loader.am running
[ 3] Advanced Gag 1.9.0 neygomon amx_gag.amxx running
[ 4] Lite VoteBan 1.4 neygomon voteban.amxx running
[ 5] Admin Commands 1.9.0.5241 AMXX Dev Team admincmd.amxx running
[ 6] Players Menu 1.9.0.5249 AMXX Dev Team plmenu.amxx running
[ 7] Admin Votes 1.9.0.5241 AMXX Dev Team adminvote.amxx running
[ 8] Maps Menu 1.9.0.5249 AMXX Dev Team mapsmenu.amxx running
[ 9] Menus Front-End 1.5 neugomon menufront_end.a running
[ 10] DJI9 BaC oT Fuka 1.0 6eCiK Fukmenu.amxx running
[ 11] Show Damage 1.0 neygomon damager.amxx running
[ 12] Ping Checker 26.0.1 RC1 h1k3 ping_checker.am running
[ 13] Lite Admin ESP 1.0 neygomon admin_esp.amxx running
[ 14] Admin Free Look 2.0 Jim admin_freelook. running
[ 15] DHUD ONLINE PAY 1.0 Ollz & Gidro dhud_online_pay running
[ 16] DemoRecoder 1.1 AXUEN4IK_18+ amx_demorec.amx running
[ 17] IDEAL VIP by Ba/lePa 2.9 Ba/lePa IDEAL_VIP.amxx debug
[ 18] block ip 0.2 legenda amx_blockip.amx running
[ 19] Weapon Menu 1.0 Mattcook & xerob weaponmenu.amxx running
[ 20] [182] Afk Time 17.10.30 Sanlerus afk_time.amxx running
[ 21] Spect Bot 1.2 SKAJIbnEJIb & Bo SpectBot.amxx running
[ 22] [ReAPI] No Team Flash 0.0.2 Vaqtincha no_team_flash.a running
[ 23] Raygo Admin-Models 1.0 AgentStrike raygo_adminmode running
[ 24] Say me and Say hp 1.4 neygomon sayme.amxx running
[ 25] Killer ScreenFade 0.0.5 Vaqtincha reapi_killer_sc running
[ 26] Auto Restart 1.0 AbeX auto_rr_2.amxx running
[ 27] MenuGen 1.0 CrAsH MenuGen.amxx running
[ 28] Steam Bonus 1.0 Denzer steam_bonus.amx running
[ 29] Fire in the hole 0.1 VEN fire_in_the_hol running
[ 30] Anti Spam FlashLight 1.3 Leo_[BH] anti_spam_flash running
[ 31] Sound Kill 1.0 Denzer sound_kill_2.am running
[ 32] Advert Messages 1.2.2 neygomon adverts.amxx running
[ 33] ResetScore and GameNam 1.0 Phantom rs_and_game_nam running
[ 34] Parachute 1.1 maeStro | neygom parachute.amxx running
[ 35] Admin Voice Chat 0.2 mx?! admin_voice_cha running
[ 36] [Reapi] Block Advert 1.4 neygomon block_advert.am running
[ 37] Chat Manager 1.1.1-11 Mistrick chatmanager.amx running
[ 38] Items Restrict 1.1 s1lent items_restrict. running
[ 39] unknown unknown unknown best_player_of_ error
[ 40] AES: StatsX 0.5+1 serfreeman1337 aes_statsx_cstr running
[ 41] Advanced Experience Sy 0.5 Vega serfreeman1337 aes_main.amxx running
[ 42] CSStatsX SQL 0.7.4+2 serfreeman1337 csstatsx_sql.am running
[ 43] AES: CStrike Addon 0.5 Vega serfreeman1337 aes_exp_cstrike running
[ 44] AES: Informer 0.5 Vega serfreeman1337 aes_informer.am running
[ 45] AES: Admin Tools 0.5 Vega serfreeman1337 aes_exp_editor. running
[ 46] Map Manager: Core 3.0.4 Mistrick map_manager_cor running
[ 47] Map Manager: Scheduler 0.1.2 Mistrick map_manager_sch running
[ 48] Map Manager: Rtv 0.1.0 Mistrick map_manager_rtv running
[ 49] Map Manager: Nominatio 0.1.0 Mistrick map_manager_nom running
[ 50] Map Manager: BlockList 0.0.3 Mistrick map_manager_blo running
[ 51] Map Manager: Effects 0.0.8 Mistrick map_manager_eff running
[ 52] Map Manager: Informer 0.0.5 Mistrick map_manager_inf running
( 39) Error: [ReAPI]: Api minor version mismatch; expected at least 11, real 9
52 plugins, 51 running
Автор плагина
"fantom"
Версия плагина
1.1.2
Исходный код
/**
*
* Name: Best player of the round
* Version: 1.1.2 (20.05.2019)
* Author: F@nt0M
* Thanks: Got Milk?, HoHoL, Safety1st, Sonyx
*
* Requirements: AmxModX 1.9.0 or higher, ReAPI
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>
*/

/**
* Use Advanced Experience System points as bonus
*/
// #define USE_AES

/**
* Use Advanced Experience System points as bonus
*/
#define ALLOW_DISABLE




#include <amxmodx>
#include <reapi>

#if defined USE_AES
#include <aes_v>
#endif

#define clearPlayer(%0) arrayset(Players[%0], 0, sizeof(Players[]))
#define eventBit(%0) (1 << _:%0)

new const Titles[2][3][] = {
{"BPR_KILL_1", "BPR_KILL_2", "BPR_KILL_3"},
{"BPR_HS_1", "BPR_HS_2", "BPR_HS_3"}
}

const ROUND_EVENTS = eventBit(ROUND_GAME_COMMENCE) | eventBit(ROUND_GAME_RESTART) | eventBit(ROUND_GAME_OVER);

new HudSync;

new MoneyBonus, NameNewLine, ShowInfo, ShowAll;

#if defined USE_AES
new Float:AesExp, AesBonus;
#endif

enum _:Player {
PlayerKills,
PlayerDmg,
PlayerHS
}

new Players[MAX_CLIENTS + 1][Player];

#if defined ALLOW_DISABLE
new bool:PlayersHudEnabled[MAX_PLAYERS + 1];
#endif

public plugin_init() {
register_plugin("[ReAPI] Best player of the round", "1.1.2", "F@nt0M");
register_dictionary("best_player_of_the_round.txt");

RegisterHookChain(RG_CBasePlayer_TakeDamage, "CBasePlayer_TakeDamage_Post", true);
RegisterHookChain(RG_CBasePlayer_Killed, "CBasePlayer_Killed_Post", true);
RegisterHookChain(RG_RoundEnd, "RoundEnd_Post", true);

#if defined ALLOW_DISABLE
register_clcmd("say /bpr", "CmdToggle");
register_clcmd("say_team /bpr", "CmdToggle");
#endif

HudSync = CreateHudSyncObj();

bind_pcvar_num(create_cvar(
"bpr_money", "1000", .has_min = true, .min_val = 0.0
), MoneyBonus);

#if defined USE_AES
bind_pcvar_float(create_cvar(
"bpr_aes_exp", "5", .has_min = true, .min_val = 0.0
), AesExp);

bind_pcvar_num(create_cvar(
"bpr_aes_bonus", "1", .has_min = true, .min_val = 0.0
), AesBonus);
#endif

bind_pcvar_num(create_cvar(
"bpr_name_newline", "1", .has_min = true, .min_val = 0.0, .has_max = true, .max_val = 1.0
), NameNewLine);

bind_pcvar_num(create_cvar(
"bpr_show_info", "1", .has_min = true, .min_val = 0.0, .has_max = true, .max_val = 2.0
), ShowInfo);

bind_pcvar_num(create_cvar(
"bpr_show_all", "1", .has_min = true, .min_val = 0.0, .has_max = true, .max_val = 1.0
), ShowAll);
}

public client_putinserver(id) {
clearPlayer(id);
#if defined ALLOW_DISABLE
PlayersHudEnabled[id] = !is_user_bot(id);
#endif
}

public client_disconnected(id) {
clearPlayer(id);
#if defined ALLOW_DISABLE
PlayersHudEnabled[id] = false;
#endif
}

#if defined ALLOW_DISABLE
public CmdToggle(id) {
PlayersHudEnabled[id] = !PlayersHudEnabled[id];
client_print_color(
id, print_team_default, "%l",
PlayersHudEnabled[id] ? "BPR_HUD_ENABLED" : "BPR_HUD_DISABLED"
);
}
#endif

public CBasePlayer_TakeDamage_Post(id, inflictor, attacker, Float:damage, damageType) {
if (
id == attacker ||
!is_user_connected(attacker) ||
!rg_is_player_can_takedamage(id, attacker) ||
(inflictor != attacker && ~damageType & DMG_GRENADE)
) {
return HC_CONTINUE;
}

Players[attacker][PlayerDmg] += floatround(damage);
return HC_CONTINUE;
}

public CBasePlayer_Killed_Post(id, attacker) {
if (
id == attacker ||
!is_user_connected(attacker) ||
!rg_is_player_can_takedamage(id, attacker)
) {
return HC_CONTINUE;
}

Players[attacker][PlayerKills]++;
if (get_member(id, m_LastHitGroup) == HIT_HEAD) {
Players[attacker][PlayerHS]++;
}
return HC_CONTINUE;
}

public RoundEnd_Post(WinStatus:status, ScenarioEventEndRound:event) {
if (eventBit(event) & ROUND_EVENTS == 0 && event != ROUND_NONE) {
set_task(1.0, "TaskRoundEnd");
} else {
for (new i = 1; i <= MaxClients; i++) {
clearPlayer(i);
}
}
}

public TaskRoundEnd() {
new players[MAX_CLIENTS], num;
get_players(players, num, "h");
if (num <= 0) {
return;
}

new maxId;
for (new i = 0, player; i < num; i++) {
player = players[i];
if (
Players[player][PlayerKills] > Players[maxId][PlayerKills] ||
(
Players[player][PlayerKills] == Players[maxId][PlayerKills] &&
Players[player][PlayerDmg] > Players[maxId][PlayerDmg]
)
) {
maxId = player;
}
}

if (maxId == 0) {
for (new i = 0; i < num; i++) {
clearPlayer(players[i]);
}
return;
}

new message[190], len;
if (MoneyBonus > 0) {
rg_add_account(maxId, MoneyBonus, AS_ADD, true);
len += formatex(message[len], charsmax(message) - len, "^1[^4%d $^1] ", MoneyBonus);
}

#if defined AES_MAX_LEVEL_LENGTH
if (AesExp > 0.0) {
aes_set_player_exp(maxId, aes_get_player_exp(maxId) + AesExp);
len += formatex(message[len], charsmax(message) - len, "^1[^4%0.0f EXP^1] ", AesExp);
}

if (AesBonus > 0) {
aes_set_player_bonus(maxId, aes_get_player_bonus(maxId) + AesBonus);
len += formatex(message[len], charsmax(message) - len, "^1[^4%d BONUS^1] ", AesBonus);
}
#endif

new name[MAX_NAME_LENGTH], num1, num2;
get_user_name(maxId, name, charsmax(name));
num1 = makeNumber(Players[maxId][PlayerKills]);
num2 = makeNumber(Players[maxId][PlayerHS]);

set_hudmessage(0, 255, 255, -1.0, 0.17, 0, .fxtime = 0.0, .holdtime = 5.0, .channel = 4);

for (new i = 0, player; i < num; i++) {
player = players[i];

if (player != maxId) {
clearPlayer(player);
}

if (!isHudEnabled(player)) {
continue;
}

SetGlobalTransTarget(player);
if (ShowInfo == 1) {
ShowSyncHudMsg(player, HudSync, "%l:%c%s^n%d %l, %d %l %l %d %l",
"BRP_MESSAGE", (NameNewLine ? "^n" : " "), name,
Players[maxId][PlayerKills], Titles[0][num1],
Players[maxId][PlayerHS], Titles[1][num2],
"BPR_AND", Players[maxId][PlayerDmg], "BPR_DMG"
);
} else if (ShowInfo == 2) {
ShowSyncHudMsg(player, HudSync, "%l:%c%s",
"BRP_MESSAGE", (NameNewLine ? "^n" : " "), name
);
}

if (len > 0) {
if (player == maxId) {
client_print_color(player, maxId, "%l %l", "BPR_PREFIX", "BPR_BONUS", message);
} else if (ShowAll) {
client_print_color(player, maxId, "%l %l", "BPR_PREFIX", "BPR_BONUS_ALL", name, message);
}
}
}
clearPlayer(maxId);
}

bool:isHudEnabled(const id) {
#if defined ALLOW_DISABLE
return PlayersHudEnabled[id];
#else
return !is_user_bot(id));
#endif
}

stock const Cases[] = {2, 0, 1, 1, 1, 2};
stock makeNumber(number) {
if (4 < (number % 100) < 20) {
return 2;
} else if ((number % 10) < 5) {
return Cases[number % 10];
} else {
return 2;
}
}
Здравствуйте, возможно проблемы с сервером, грешу на реапли. Буду очень благодарен за помощь
 
Сообщения
509
Реакции
111
Помог
16 раз(а)
Vadim35,

Код:
( 39) Error: [ReAPI]: Api minor version mismatch; expected at least 11, real 9
обнови reAPI
 
Сообщения
43
Реакции
0
Помог
1 раз(а)
r1nk0, так если я обновлю reAPI то плагины работать не буду. Это все обновлять нужно будет ?
 

Ayk

Сообщения
763
Реакции
478
Помог
19 раз(а)
Vadim35, надо чтобы версия установленного модуля соответствовала версии инклудов при компиляции.
 
Сообщения
43
Реакции
0
Помог
1 раз(а)
Ayk, точно, можно пожалуйста ссылку на reAPI для моей версии. если я правильно понял то моя версия
version: 5.9.0.366-dev ?
 
Сообщения
2,491
Реакции
2,794
Помог
61 раз(а)
надо чтобы версия установленного модуля соответствовала версии инклудов при компиляции.
если быть точнее то такой же или више.

так если я обновлю reAPI то плагины работать не буду. Это все обновлять нужно будет ?
Должны работать. Правда придется апнуть ReGameDLL заодно.

В вашем же случае просто стащите инклуды с той версии которая у вас на сервере и скомпилируйте плагин.
 
  • Нравится
Реакции: Ayk

RockTheStreet

Саппорт года
Сообщения
1,743
Реакции
344
Помог
40 раз(а)
Обратите внимание, если вы хотите заключить сделку с этим пользователем, он заблокирован
Сообщения
43
Реакции
0
Помог
1 раз(а)
melfyk,
если я правильно понял то моя версия
version: 5.9.0.366-dev ?
 

RockTheStreet

Саппорт года
Сообщения
1,743
Реакции
344
Помог
40 раз(а)
Обратите внимание, если вы хотите заключить сделку с этим пользователем, он заблокирован
  • Lol
Реакции: Ayk

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу