- Ошибка
-
( 32) Error: [ReAPI]: Api major version mismatch; expected 4, real 5
- ОС
- Linux
- Билд
-
ReHLDS version: 3.4.0.633-dev
- ReGamedll
-
ReGameDLL version: 5.5.0.290-dev
- Список метамодулей
-
[ 1] AMX Mod X RUN - amxmodx_mm_i386. v1.8.3-R ini Start ANY
[ 2] Reunion RUN - reunion_mm_i386. v0.1.75 ini Start Never
[ 3] ReSemiclip RUN - resemiclip_mm_i3 v2.3.9 ini Chlvl ANY
[ 4] Rechecker RUN - rechecker_mm_i38 v2.4 ini Chlvl ANY
[ 5] ReAuthCheck RUN - reauthcheck_mm_i v0.1.6 ini Start Never
[ 6] WHBlocker RUN - whblocker_mm_i38 v1.5.692 ini Chlvl ANY
[ 7] ReSRDetector RUN - resrdetector_mm_ v0.1.0 ini Chlvl ANY
[ 8] ReAPI RUN - reapi_amxx_i386. v5.5.0.1 pl1 ANY Never
[ 9] SQLite RUN - sqlite_amxx_i386 v1.8.3-R pl1 ANY ANY
[10] hackdetector RUN - hackdetector_amx v0.15.32 pl1 ANY ANY
[11] ReAimDetector RUN - reaimdetector_am v0.2.0 pl1 ANY Never
[12] Hide Cvars RUN - hidecvars_amxx_i v1.0 pl1 ANY ANY
[13] Engine RUN - engine_amxx_i386 v1.8.3-R pl1 ANY ANY
[14] Ham Sandwich RUN - hamsandwich_amxx v1.8.3-R pl1 ANY ANY
[15] CStrike RUN - cstrike_amxx_i38 v1.8.3-R pl1 ANY ANY
[16] FakeMeta RUN - fakemeta_amxx_i3 v1.8.3-R pl1 ANY ANY
[17] CSX RUN - csx_amxx_i386.so v1.8.3-R pl1 ANY ANY
[18] Fun RUN - fun_amxx_i386.so v1.8.3-R pl1 ANY ANY
[19] GeoIP RUN - geoip_amxx_i386. v1.8.3-R pl1 ANY ANY
19 plugins, 19 running
- Список плагинов
-
[ 1] ReAimDetector API 0.2.0 ReHLDS Team reaimdetector.a running
[ 2] Advanced Bans 0.8.1 Exolent advanced_bans.a running
[ 3] unknown unknown unknown info.amxx running
[ 4] Lista admini (amx_who) 1.0 SeeR amx_who.amxx running
[ 5] Gag ss.indungi SeeR amx_gag.amxx running
[ 6] Say me and Say hp 1.4 neygomon sayme.amxx running
[ 7] [ReAPI] Lite TeamBalan 2.3 neugomon lite_balancer_2 running
[ 8] unknown unknown unknown no_teamflash.am running
[ 9] Mode 2x2 2.5re s1lent mode.amxx running
[ 10] VIPka 1.34 neygomon vip_system.amxx running
[ 11] Motd System 1.0 Hypa_[KZ] motd_system.amx running
[ 12] [ReAPI] AdminFreeLook 1.0 ReHLDS Team adminfreelook.a running
[ 13] Activitate Admini 2.0c Askhanar activitate_admi running
[ 14] Lite Admin ESP 1.0 neygomon admin_esp.amxx running
[ 15] Admin Base 1.8.3-Re AMXX Dev Team admin.amxx running
[ 16] Admin Commands 1.8.2 AMXX Dev Team admincmd.amxx running
[ 17] Menus Front-End 1.8.3-Re AMXX Dev Team menufront.amxx running
[ 18] Commands Menu 1.8.3-Re AMXX Dev Team cmdmenu.amxx running
[ 19] Players Menu 1.8.2 AMXX Dev Team plmenu.amxx running
[ 20] Slay Team 1.0 FireW@ll slayteam.amxx running
[ 21] Maps Menu 1.8.3-Re AMXX Dev Team mapsmenu.amxx running
[ 22] Plugin Menu 1.8.3-Re AMXX Dev Team pluginmenu.amxx running
[ 23] Admin Chat 1.8.2 AMXX Dev Team adminchat.amxx running
[ 24] Admin Votes 1.8.2 AMXX Dev Team adminvote.amxx running
[ 25] Pause Plugins 1.8.3-Re AMXX Dev Team pausecfg.amxx running
[ 26] Stats Configuration 1.8.3-Re AMXX Dev Team statscfg.amxx running
[ 27] Restrict Weapons 1.8.3-Re AMXX Dev Team restmenu.amxx running
[ 28] Map Manager 2.5.60 Mistrick mapmanager.amxx running
[ 29] AES: StatsX 0.5 Vega serfreeman1337 aes_statsx_cstr running
[ 30] StatsX 1.8.3-dev+ AMXX Dev Team statsx.amxx running
[ 31] SERVER TASKS 2.0 HATTRICK (HTTRCK server_tasks.am running
[ 32] unknown unknown unknown random_weapons_ error
[ 33] CFG Slash 1.0 aNNakin cfg_slash.amxx running
[ 34] Afk Control 0.4.1 Freedo.m | neygo afk_control.amx running
[ 35] Steam Bonus 1.2 Cruel steam_bonus.amx running
[ 36] Autoresponder/Advertis 0.5 MaximusBrood ad_manager.amxx running
[ 37] Ultimele Harti 1.0 M@$t3r_@dy last_maps.amxx running
[ 38] Bomb Countdown HUD Tim 0.2 SAMURAI bcd_hudtimer.am running
[ 39] Comenzi 1.0 scosmyn transfer.amxx running
[ 40] First Killer Bonus 0.0.1 wopox1337 FirstKillerBonu running
[ 41] ResetScore 1.0 daNzEt resetscore.amxx running
[ 42] Restricted_Names 1.1 Mercenaru) rstrict_name_no running
[ 43] Auto Join on Connect 0.1 VEN auto_join_on_co running
[ 44] Weapon Icon 1.2 hoboman313/Zenix weapon_icon.amx running
[ 45] ShowIP 0.00 teame06 amx_ip.amxx running
[ 46] Ping Faker 1.0 Hattrick pingfaker.amxx running
[ 47] Chat Manager 1.1.1-11 Mistrick chatmanager.amx running
[ 48] Chat Manager: Addon 0.0.4-70 Mistrick chatmanager_2.a running
[ 49] Aim Info + Country 1.4 xPaw aimcountry.amxx running
[ 50] ?????? 10 ?????????? ? 1.0 Mi-Ki amxx_top_damage running
[ 51] Advanced Experience Sy 0.5 Vega serfreeman1337 aes_main.amxx running
[ 52] AES: CStrike Addon 0.5 Vega serfreeman1337 aes_exp_cstrike running
[ 53] AES: Informer 0.5 Vega serfreeman1337 aes_informer.am running
[ 54] AES: Admin Tools 0.5 Vega serfreeman1337 aes_exp_editor. running
[ 55] AES: Bonus System 0.5 Vega serfreeman1337 aes_bonus_syste running
[ 56] AES: Bonus CSTRIKE 0.5 Vega serfreeman1337 aes_bonus_cstri running
( 32) Error: [ReAPI]: Api major version mismatch; expected 4, real 5
56 plugins, 55 running
- Исходный код
-
#include <amxmodx>
#include <reapi>
#define TIME_RR 80 // Время разминки
#define NUM_RR 1 // Кол-во рестартов
#define LATENCY 1.5 // Задержка между рестартами
#define PROTECTED 2 // Сколько секунд действует защита после возрождения, 0 - отключить (актуально для DM_MODE)
// отключаемо //
//#define SOUND // Музыка под час разминки
#define STOP_PLUGS // Отключать плагины на время разминки
#define DM_MODE // Бесконечный респавн на время разминки
#define OFF_RR // Отключать этот плагин на указанных картах
#if defined SOUND
new const soundRR[] = "sound/rr/RoundStart.mp3"; // Указывать путь и название файла, например sound/serv/music.mp3
#endif
#if defined STOP_PLUGS
new g_arPlugins[][] = // Указывать название плагинов, например test.amxx
{
"steam_bonus.amxx",
"FirstKillerBonus.amxx"
}
#endif
new g_iHudSync;
new g_szWeapon[32];
new g_iWp;
new HookChain:fwd_NewRound,
#if defined DM_MODE
HookChain:fwd_Killed,
#endif
HookChain:fwd_Spawn;
const TASK_PROTECTION_ID = 33464;
public plugin_init()
{
register_plugin("[ReAPI] Random Weapons WarmUP", "2.4.2", "neugomon");
RegisterHookChain(RG_RoundEnd, "fwdRoundEnd", true);
DisableHookChain((fwd_NewRound = RegisterHookChain(RG_CSGameRules_RestartRound, "fwdRoundStart", false)));
DisableHookChain((fwd_Spawn = RegisterHookChain(RG_CBasePlayer_Spawn, "fwdPlayerSpawnPost", true)));
#if defined DM_MODE
DisableHookChain((fwd_Killed = RegisterHookChain(RG_CBasePlayer_Killed, "fwdPlayerKilledPost", true)));
g_iHudSync = CreateHudSyncObj();
register_clcmd("joinclass", "clCmdJoinClass");
register_clcmd("menuselect","clCmdJoinClass");
#endif
state warmupOff;
#if defined OFF_RR
new sPref[][] = { "awp_", "aim_", "fy_", "$", "cs_", "35hp" }; // Указывать префиксы карт
new map[32]; get_mapname(map, charsmax(map));
for(new i; i < sizeof sPref; i++)
{
if(containi(map, sPref[i]) != -1)
{
pause("ad");
return;
}
}
#endif
}
public client_putinserver(id)
{
remove_task(id + TASK_PROTECTION_ID)
}
#if defined SOUND
public plugin_precache()
{
precache_generic(soundRR);
}
#endif
public fwdRoundEnd(WinStatus:status, ScenarioEventEndRound:event, Float:tmDelay)
if(event == ROUND_GAME_COMMENCE)
EnableHookChain(fwd_NewRound);
public fwdRoundStart()
{
state warmupOn;
BuyZone_ToogleSolid(SOLID_NOT);
#if defined SOUND
client_cmd(0, "mp3 play ^"%s^"", soundRR);
#endif
DisableHookChain(fwd_NewRound);
EnableHookChain(fwd_Spawn);
#if defined DM_MODE
EnableHookChain(fwd_Killed);
#endif
#if defined STOP_PLUGS
PluginController(1);
#endif
switch((g_iWp = random(2)))
{
case 0: formatex(g_szWeapon, charsmax(g_szWeapon), "M4A1");
case 1: formatex(g_szWeapon, charsmax(g_szWeapon), "AK-47");
}
set_task(1.0, "ShowTimer", .flags = "a", .repeat = TIME_RR);
}
#if defined DM_MODE
public clCmdJoinClass(id) <warmupOff>
return;
public clCmdJoinClass(id) <warmupOn>
if(get_member(id, m_iMenu) == Menu_ChooseAppearance)
set_task(0.5, "SpawnPlayer", id);
#endif
public fwdPlayerSpawnPost(const id)
{
if(!is_user_alive(id))
return;
rg_remove_all_items(id);
switch(g_iWp)
{
case 0:
{
rg_give_item(id, "weapon_m4a1");
rg_set_user_bpammo(id, WEAPON_M4A1, 90);
rg_give_item(id, "weapon_knife");
}
case 1:
{
rg_give_item(id, "weapon_ak47");
rg_set_user_bpammo(id, WEAPON_AK47, 90);
rg_give_item(id, "weapon_knife");
}
}
}
#if defined DM_MODE
public fwdPlayerKilledPost(pVictim)
set_task(1.0, "SpawnPlayer", pVictim);
#endif
public ShowTimer()
{
static timer = -1;
if(timer == -1) timer = TIME_RR;
switch(--timer)
{
case 0:
{
state warmupOff;
BuyZone_ToogleSolid(SOLID_TRIGGER);
DisableHookChain(fwd_Spawn);
#if defined DM_MODE
DisableHookChain(fwd_Killed);
#endif
#if defined STOP_PLUGS
PluginController(0);
#endif
#if NUM_RR > 1
set_task(LATENCY, "SV_Restart", .flags = "a", .repeat = NUM_RR);
#else
SV_Restart();
#endif
timer = -1;
}
default:
{
set_hudmessage(135, 206, 235, .x = -1.0, .y = 0.90, .holdtime = 0.9, .channel = -1);
ShowSyncHudMsg(0, g_iHudSync, "Ai primit arma %s!^nRunda de incalzire se termina in %d secunde.", g_szWeapon, timer);
}
}
}
public SV_Restart()
set_cvar_num("sv_restart", 1);
#if defined DM_MODE
public SpawnPlayer(id)
{
if(!is_user_connected(id))
return;
if(is_user_alive(id))
return;
SetProtection(id)
switch(get_member(id, m_iTeam))
{
case 1, 2: rg_round_respawn(id);
}
}
#endif
public SetProtection(id)
{
set_entvar(id, var_takedamage, DAMAGE_NO)
#if PROTECTED > 1
set_member(id, m_bIsDefusing, true)
#endif
switch(get_member(id, m_iTeam))
{
case TEAM_TERRORIST: rg_set_rendering(id, kRenderFxGlowShell, 255, 0, 0, 10);
case TEAM_CT: rg_set_rendering(id, kRenderFxGlowShell, 0, 0, 255, 10);
}
remove_task(TASK_PROTECTION_ID + id)
set_task( PROTECTED.0, "EndProtection", TASK_PROTECTION_ID + id)
}
public EndProtection(TaskID)
{
new id = TaskID - TASK_PROTECTION_ID
if(!is_user_connected(id))
return
#if PROTECTED > 1
set_member(id, m_bIsDefusing, false)
#endif
set_entvar(id, var_takedamage, DAMAGE_AIM)
rg_set_rendering(id)
}
stock rg_set_rendering(index, fx = kRenderFxNone, r=255, g=255, b=255, amount=16)
{
new Float:RenderColor[3]
RenderColor[0] = float(r)
RenderColor[1] = float(g)
RenderColor[2] = float(b)
set_entvar(index, var_renderfx, fx)
set_entvar(index, var_rendercolor, RenderColor)
set_entvar(index, var_renderamt, float(amount))
}
stock PluginController(stop)
{
for(new i; i < sizeof g_arPlugins; i++)
{
if(stop)pause ("ac", g_arPlugins[i]);
else unpause("ac", g_arPlugins[i]);
}
}
stock BuyZone_ToogleSolid(const solid)
{
new entityIndex = 0;
while ((entityIndex = rg_find_ent_by_class(entityIndex, "func_buyzone")))
set_entvar(entityIndex, var_solid, solid);
}
Says I have an old version to, why?
В этой теме было размещено решение! Перейти к решению.