[ReAPI] Random Weapons

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
67
Реакции
5
Помог
1 раз(а)
Ошибка
L 01/03/2023 - 20:34:28: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/03/2023 - 20:34:28: [ReAPI] SetHookChainReturn: trying to set return value with incompatible type, expected 'ATYPE_BOOL'; got 'ATYPE_INTEGER'
L 01/03/2023 - 20:34:28: [AMXX] Run time error 10 (plugin "random_weapons_warmup.amxx") (native "SetHookChainReturn") - debug not enabled!
L 01/03/2023 - 20:34:28: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
ОС
Linux
Amx Mod X
1.9.0
Билд
ReHLDS version: 3.11.0.767-dev
ReGamedll
5.21.0.540-dev
Версия Metamod
Metamod-r version 1.3.0.131
Список метамодулей
[ 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] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC5 ini ANY ANY
[ 4] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5294 ini Start ANY
[ 5] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 6] Rechecker RUN - rechecker_mm_i386.so v2.7 ini Chlvl ANY
[ 7] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 8] WHBlocker RUN - whblocker_mm_i386.so v1.5.697 ini Chlvl ANY
[ 9] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[10] MySQL RUN - mysql_amxx_i386.so v1.9.0.5294 pl4 ANY ANY
[11] SQLite RUN - sqlite_amxx_i386.so v1.9.0.5294 pl4 ANY ANY
[12] Fun RUN - fun_amxx_i386.so v1.9.0.5294 pl4 ANY ANY
[13] Engine RUN - engine_amxx_i386.so v1.9.0.5294 pl4 ANY ANY
[14] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5294 pl4 ANY ANY
[15] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5294 pl4 ANY ANY
[16] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5294 pl4 ANY ANY
[17] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl4 ANY Never
[18] ReAPI RUN - reapi_amxx_i386.so v5.21.0.248-dev pl4 ANY Never
Список плагинов
[  1] Trial Access            1.0.1       mx?!              trial_access.am  running  
[ 2] [190] AMXBans RBS 20.06.06 SKAJIbnEJIb & La amxbans_rbs.amx running
[ 3] CSStatsX SQL 0.7.4+2 serfreeman1337 csstatsx_sql.am running
[ 4] [190] Cvar On Map 20.06.06 SKAJIbnEJIb cvar_on_map.amx running
[ 5] [190] Snipers RBS 20.06.06 SKAJIbnEJIb snipers_rbs.amx running
[ 6] [190] CSDM Lite 20.08.08 SKAJIbnEJIb csdm_lite.amxx running
[ 7] Admin Commands 1.9.0.5294 AMXX Dev Team admincmd.amxx running
[ 8] [Customizable] AmxModM 0.0.5 Albertio amxmodmenu.amxx running
[ 9] Commands Menu 1.9.0.5294 AMXX Dev Team cmdmenu.amxx running
[ 10] New Kick Menu 1.4.2 Radius newkickmenu.amx running
[ 11] Players Menu 1.7 neugomon players_menu.am running
[ 12] Plugin Menu 1.9.0.5294 AMXX Dev Team pluginmenu.amxx running
[ 13] Admin Chat 1.9.0.5294 AMXX Dev Team adminchat.amxx running
[ 14] Admin Votes 1.9.0.5294 AMXX Dev Team adminvote.amxx running
[ 15] Pause Plugins 1.9.0.5294 AMXX Dev Team pausecfg.amxx running
[ 16] Stats Configuration 1.9.0.5294 AMXX Dev Team statscfg.amxx running
[ 17] AES: StatsX 0.5+1 serfreeman1337 aes_statsx_cstr running
[ 18] StatsX 1.8.2 AMXX Dev Team statsx.amxx running
[ 19] Restrict Weapons 1.9.0.5294 AMXX Dev Team restmenu.amxx running
[ 20] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 21] Unreal Cheater Cry 1.0.11 Karaulov unreal_cheater_ running
[ 22] [190] No Team Flash 20.06.06 SKAJIbnEJIb NoTeamFlash.amx running
[ 23] Mode 2x2 2.5re s1lent mode.amxx running
[ 24] [ReAPI] Random Weapons 2.4.9 neugomon/h1k3 random_weapons_ running
[ 25] Top Awards 1.2.0 szawesome top_awards.amxx running
[ 26] Night VIPs 1.1.1 szawesome night_vips.amxx running
[ 27] Auto Team Balance Adva 1.5.1 Radius auto_team_balan running
[ 28] [190] Map Spawns Edito 20.06.06 SKAJIbnEJIb & iG MapSpawnsEditor running
[ 29] AFK Manager 1.2 Xramer afk_manager.amx running
[ 30] Lite Admin ESP 1.0 neygomon admin_esp.amxx running
[ 31] [190] Parachute RBS 20.06.06 SKAJIbnEJIb & KR parachute_rbs.a running
[ 32] [190] DemoRecorder RBS 20.06.06 SKAJIbnEJIb demorecorder_rb running
[ 33] [190] SlayLosers RBS 20.06.06 SKAJIbnEJIb & d3 slaylosers_rbs. running
[ 34] [190] High Ping Kicker 20.06.06 SKAJIbnEJIb hpk_rbs.amxx running
[ 35] FirstPlayersRespawn 1.0.0 Emma Jule FirstPlayersRes running
[ 36] AES: StatsX Info Rank 0.1 serfreeman1337 aes_statsx_rank running
[ 37] Grenade Throw Multipli 0.4.0 F@nt0M grenade_throw_m running
[ 38] [ReAPI] Hint blocker 0.1.0 F@tn0M reapi_hint_bloc running
[ 39] Block grande info 1.0 neygomon BlockGrenadeInf running
[ 40] Block grande info 1.0 neygomon BlockGrenadeInf running
[ 41] [ReAPI] Healthnade 0.0.2 F@nt0M reapi_healthnad running
[ 42] Frags Counter 1.0 CHEL74 frags_counter.a running
[ 43] [ReAPI] Silly C4 2.0 F@ntoM & Cheap_S reapi_sillyc4.a running
[ 44] Advanced Kill Assists 1.3c Xelson next21_kill_ass running
[ 45] Damager Advanced 1.1.2 Radius (based on damager_advance running
[ 46] Lighting Menu 0.1.1 Nordic Warrior LightingMenu.am running
[ 47] Time Maps 1.0 Javekson timemaps.amxx running
[ 48] Menu System 0.1.2 serfreeman1337 menuSystem.amxx running
[ 49] AdvancedResetScore 1.0 MapCreator reset_score.amx running
[ 50] c4 timer 1.1 cheap_suit c4timer.amxx running
[ 51] Christmas hat 0.3 AMXX.Shop christmas_hat_r running
[ 52] Nice Killer 1.6 Got Milk? / HoHo nice_killer.amx running
[ 53] SpecList 1.2a SasaiLalka speclist_rus.am running
[ 54] Give ADMIN *SoNeeKkk SoNeeKK1 give_donat.amxx running
[ 55] Advert Messages 1.2 neygomon adverts.amxx running
[ 56] unknown unknown unknown fix_reload_cust running
[ 57] DHUD Advert. 2.0 DUKKHAZ0R dhud_advert.amx running
[ 58] Advanced Ultimate Weap 0.1.0b steelzzz auw.amxx running
[ 59] unknown unknown unknown ultimate_weapon running
[ 60] [190] VIP RBS 20.07.20 SKAJIbnEJIb vip_rbs.amxx running
[ 61] Advanced Experience Sy 0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 62] AES: CStrike Addon 0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 63] AES: Informer 0.5.9 [REA serfreeman1337/s aes_informer.am running
[ 64] AES: Admin Tools 0.5.9 [REA serfreeman1337/s aes_exp_editor. running
[ 65] AES: Bonus System 0.6.0 Vega serfreeman1337/s aes_bonus_syste running
[ 66] AES: Bonus CSTRIKE 0.5.9.1 [R serfreeman1337/s aes_bonus_cstri running
[ 67] [AES: Bonus] AUW Weapo 0.0.1 steelzzz aes_bonus_weapo running
[ 68] ChatAdditions: Core %CA_VERSIO Sergey Shorokhov ChatAdditions_C running
[ 69] ChatAdditions: SQLite %CA_VERSIO Sergey Shorokhov CA_Storage_SQLi running
[ 70] CA: Anti Flood %CA_VERSIO Nordic Warrior CA_AntiFlood.am running
[ 71] CA: Mute %CA_VERSIO Sergey Shorokhov CA_Mute.amxx running
[ 72] CA: VoteGAG 1.0.0-alph Sergey Shorokhov CA_Addon_VoteGa running
[ 73] CA: Gag %CA_VERSIO Sergey Shorokhov CA_Gag.amxx running
[ 74] Chat Manager (uni + sk 1.1.2-16xx Mistrick chatmanager.amx running
[ 75] Map Manager: Core 3.1.5 Mistrick map_manager_cor running
[ 76] Map Manager: Scheduler 0.1.10 Mistrick map_manager_sch running
[ 77] Admin Mapmenu 0.5.3 d3m37r4 admin_mapmenu.a running
[ 78] Map Manager: Rtv 0.1.1 Mistrick map_manager_rtv running
[ 79] Map Manager: Nominatio 0.2.1 Mistrick map_manager_nom running
[ 80] Map Manager: BlockList 0.0.4 Mistrick map_manager_blo running
[ 81] Map Manager: Online so 0.0.4 Mistrick map_manager_onl running
[ 82] Map Manager: Effects 0.1.1 Mistrick map_manager_eff running
[ 83] Map Manager: Informer 0.0.5 Mistrick map_manager_inf running
[ 84] Map Manager: Sounds 0.0.2 Mistrick map_manager_sou running
Автор плагина
neugomon/h1k3
Версия плагина
2.4.9
Исходный код
#include <amxmodx>
#include <reapi>

/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
#define TIME_RR 80 // Время разминки
#define NUM_RR 2 // Кол-во рестартов
#define LATENCY 1.5 // Задержка между рестартами
#define DM_MODE 1 // Возрождение после смерти; 0 - отключить (будет длится раунд или до победы)
#define PROTECTED 2 // Сколько секунд действует защита после возрождения (актуально для DM_MODE); 0 - отключить

//#define SOUND // Музыка под час разминки
//#define STOP_PLUGS // Отключать плагины на время разминки
#define OFF_RR // Отключать этот плагин на указанных картах
//#define REMOVE_MAP_WPN // Удалять ентити мешающие разминке на картах типа: awp_, 35hp_ и т.п. [по умолчанию выкл.]
#define BLOCK // Запрет поднятия оружия с земли (не актуально при вкл. #define REMOVE_MAP_WPN) [по умолчанию выкл.]
#define STOP_STATS // Отключать запись статистики на время разминки CSStatsX SQL by serfreeman1337 0.7.4+1 [по умолчанию выкл.]
/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/

#if defined REMOVE_MAP_WPN
#include <hamsandwich>
#endif

#if defined SOUND
new const soundRR[][] = // Указывать звук, например 1.mp3
{
"sound/rww/RoundStart.mp3",
// "sound/rww/2.mp3",
// "sound/rww/3.mp3"
}
#endif

#if defined STOP_PLUGS
new g_arPlugins[][] = // Указывать название плагинов для отключения, например test.amxx
{
"test.amxx",
"test2.amxx"
}
#endif

#if DM_MODE == 0
new HookChain:fwd_RRound;
new g_iRound;
#endif

#if defined REMOVE_MAP_WPN
new HamHook:fwd_Equip,
HamHook:fwd_WpnStrip,
HamHook:fwd_Entity;
#endif

#if defined STOP_STATS
new g_iHudSync;
#endif
new g_szWeapon[32];
new g_iImmunuty, g_iRespawn, g_iWp, g_iHudSync2;
new HookChain:fwd_NewRound,
#if defined BLOCK
HookChain:fwd_BlockEntity,
#endif
HookChain:fwd_Spawn,
HookChain:fwd_GiveC4;

const TASK_TIMER_ID = 33264;

public plugin_init()
{
register_plugin("[ReAPI] Random Weapons WarmUP", "2.4.9", "neugomon/h1k3");

RegisterHookChain(RG_RoundEnd, "fwdRoundEnd", true);
DisableHookChain(fwd_NewRound = RegisterHookChain(RG_CSGameRules_CheckMapConditions, "fwdRoundStart", true));
DisableHookChain(fwd_Spawn = RegisterHookChain(RG_CBasePlayer_Spawn, "fwdPlayerSpawnPost", true));
DisableHookChain(fwd_GiveC4 = RegisterHookChain(RG_CSGameRules_GiveC4, "fwdGiveC4", false));

#if defined REMOVE_MAP_WPN
DisableHamForward(fwd_Equip = RegisterHam(Ham_Use, "game_player_equip", "CGamePlayerEquip_Use", false));
DisableHamForward(fwd_WpnStrip = RegisterHam(Ham_Use, "player_weaponstrip", "CStripWeapons_Use", false));
DisableHamForward(fwd_Entity = RegisterHam(Ham_CS_Restart, "armoury_entity", "CArmoury_Restart", false));
#endif

#if DM_MODE == 0
EnableHookChain(fwd_RRound = RegisterHookChain(RG_CSGameRules_RestartRound, "fwdRestartRound_Pre"));
#endif

#if defined BLOCK
DisableHookChain(fwd_BlockEntity = RegisterHookChain(RG_CBasePlayer_HasRestrictItem, "fwdHasRestrictItemPre", false));
register_clcmd("drop", "ClCmd_Drop");
#endif

g_iImmunuty = get_cvar_pointer("mp_respawn_immunitytime");
g_iRespawn = get_cvar_pointer("mp_forcerespawn");
#if defined STOP_STATS
g_iHudSync = CreateHudSyncObj();
#endif
g_iHudSync2 = CreateHudSyncObj();

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 plugin_end() <warmupOff> {}

public plugin_end() <warmupOn>
{
finishWurmUp();
}

#if defined BLOCK
public fwdHasRestrictItemPre()
{
SetHookChainReturn(ATYPE_INTEGER, true);
return HC_SUPERCEDE;
}

public ClCmd_Drop() <warmupOff>
return PLUGIN_CONTINUE;

public ClCmd_Drop() <warmupOn>
return PLUGIN_HANDLED;
#endif


#if defined SOUND
public plugin_precache()
{
for(new i = 0; i < sizeof(soundRR); i++)
{
precache_generic(soundRR[i]);
}
}
#endif

public fwdRoundEnd(WinStatus:status, ScenarioEventEndRound:event, Float:tmDelay)
if(event == ROUND_GAME_COMMENCE)
EnableHookChain(fwd_NewRound);

public fwdRoundStart()
{
state warmupOn;

#if defined REMOVE_MAP_WPN
EnableHamForward(fwd_Equip);
EnableHamForward(fwd_WpnStrip);
EnableHamForward(fwd_Entity);
#endif

DisableHookChain(fwd_NewRound);
EnableHookChain(fwd_Spawn);
EnableHookChain(fwd_GiveC4);

set_pcvar_num(g_iRespawn, DM_MODE);
set_pcvar_num(g_iImmunuty, PROTECTED);

#if DM_MODE >= 1
set_cvar_string("mp_round_infinite", "1");
set_task(1.0, "Show_Timer", .flags = "a", .repeat = TIME_RR);
#endif

#if DM_MODE == 0
set_task(1.0, "Hud_Message", .flags = "a", .repeat = 25 );
#endif

#if defined SOUND
static cmd[64];
formatex(cmd, 63, "mp3 play ^"%s^"", soundRR[random(sizeof(soundRR))]);
client_cmd(0, "%s", cmd);
#endif

#if defined STOP_STATS
set_cvar_num("csstats_pause", 1);
#endif

#if defined BLOCK
EnableHookChain(fwd_BlockEntity);
#endif

#if defined STOP_PLUGS
PluginController(1);
#endif

switch(g_iWp = random(8))
{
case 0: formatex(g_szWeapon, charsmax(g_szWeapon), "M4A1");
case 1: formatex(g_szWeapon, charsmax(g_szWeapon), "AK-47");
case 2: formatex(g_szWeapon, charsmax(g_szWeapon), "МP5");
case 3: formatex(g_szWeapon, charsmax(g_szWeapon), "SG-550");
case 4: formatex(g_szWeapon, charsmax(g_szWeapon), "Famas");
case 5: formatex(g_szWeapon, charsmax(g_szWeapon), "SCOUT");
case 6: formatex(g_szWeapon, charsmax(g_szWeapon), "XM1014");
case 7: formatex(g_szWeapon, charsmax(g_szWeapon), "M3");
}
}

public fwdPlayerSpawnPost(const id)
{
if(!is_user_alive(id))
return;

#if defined REMOVE_MAP_WPN
InvisibilityArmourys();
#endif

BuyZone_ToogleSolid(SOLID_NOT);
rg_remove_all_items(id);
set_member_game(m_bMapHasBuyZone, true);
rg_give_item(id, "weapon_knife");

switch(g_iWp)
{
case 0:
{
rg_give_item(id, "weapon_m4a1");
rg_set_user_bpammo(id, WEAPON_M4A1, 90);
}
case 1:
{
rg_give_item(id, "weapon_ak47");
rg_set_user_bpammo(id, WEAPON_AK47, 90);
}
case 2:
{
rg_give_item(id, "weapon_mp5navy");
rg_set_user_bpammo(id, WEAPON_MP5N, 120);
}
case 3:
{
rg_give_item(id, "weapon_sg550");
rg_set_user_bpammo(id, WEAPON_SG550, 90);
}
case 4:
{
rg_give_item(id, "weapon_famas");
rg_set_user_bpammo(id, WEAPON_FAMAS, 90);
}
case 5:
{
rg_give_item(id, "weapon_scout");
rg_set_user_bpammo(id, WEAPON_SCOUT, 30);
}
case 6:
{
rg_give_item(id, "weapon_xm1014");
rg_set_user_bpammo(id, WEAPON_XM1014, 50);
}
case 7:
{
rg_give_item(id, "weapon_m3");
rg_set_user_bpammo(id, WEAPON_M3, 50);
}
}
}

public fwdGiveC4()
{
return HC_SUPERCEDE;
}

#if DM_MODE >= 1
public Show_Timer()
{
static timer = -1;
if(timer == -1) timer = TIME_RR;

switch(--timer)
{
case 0:
{
finishWurmUp();
timer = -1;
}
default:
{
#if defined STOP_STATS
set_hudmessage(255, 0, 0, .x = -1.0, .y = 0.05, .holdtime = 0.9, .channel = -1);
ShowSyncHudMsg(0, g_iHudSync, "[Статистика Отключена]");
#endif
set_hudmessage(135, 206, 235, .x = -1.0, .y = 0.08, .holdtime = 0.9, .channel = -1);
ShowSyncHudMsg(0, g_iHudSync2, "Разминка на %s!^nРестарт через %d сек", g_szWeapon, timer);
}
}
}
#endif

#if DM_MODE == 0
public fwdRestartRound_Pre()
{
g_iRound++;

if(g_iRound >= 2) {
DisableHookChain(fwd_RRound);
finishWurmUp();
}
}

public Hud_Message()
{
#if defined STOP_STATS
set_hudmessage(255, 0, 0, .x = -1.0, .y = 0.05, .holdtime = 0.9, .channel = -1);
ShowSyncHudMsg(0, g_iHudSync, "[Статистика Отключена]");
#endif
set_hudmessage(135, 206, 235, .x = -1.0, .y = 0.08, .holdtime = 0.9, .channel = -1);
ShowSyncHudMsg(0, g_iHudSync2, "Разминка на %s!", g_szWeapon);
}
#endif

public SV_Restart()
{
set_cvar_num("sv_restart", 1);
set_task(2.0, "End_RR");
}

public End_RR()
{
#if defined STOP_STATS
set_hudmessage(255, 0, 0, .x = -1.0, .y = 0.05, .holdtime = 5.0, .channel = -1);
ShowSyncHudMsg(0, g_iHudSync, "[Статистика Включена]");
#endif
set_hudmessage(135, 206, 235, .x = -1.0, .y = 0.08, .holdtime = 5.0, .channel = -1);
ShowSyncHudMsg(0, g_iHudSync2, "Разминка окончена!");
for(new i = 1; i <= MaxClients; i++)
{
if(is_user_alive(i))
{
rg_remove_items_by_slot(i, PRIMARY_WEAPON_SLOT);
}
}
}

#if defined REMOVE_MAP_WPN
public CArmoury_Restart(const pArmoury)
{
return HAM_SUPERCEDE;
}

public CGamePlayerEquip_Use()
{
return HAM_SUPERCEDE;
}

public CStripWeapons_Use()
{
return HAM_SUPERCEDE;
}

InvisibilityArmourys()
{
new pArmoury = NULLENT
while((pArmoury = rg_find_ent_by_class(pArmoury, "armoury_entity")))
{
if(get_member(pArmoury, m_Armoury_iCount) > 0)
{
set_entvar(pArmoury, var_effects, get_entvar(pArmoury, var_effects) | EF_NODRAW)
set_entvar(pArmoury, var_solid, SOLID_NOT)
set_member(pArmoury, m_Armoury_iCount, 0)
}
}
}
#endif

finishWurmUp()
{
state warmupOff;

BuyZone_ToogleSolid(SOLID_TRIGGER);

#if defined REMOVE_MAP_WPN
DisableHamForward(fwd_Equip);
DisableHamForward(fwd_WpnStrip);
DisableHamForward(fwd_Entity);
#endif

DisableHookChain(fwd_Spawn);
DisableHookChain(fwd_GiveC4);

set_cvar_string("mp_forcerespawn", "0");
set_cvar_string("mp_respawn_immunitytime", "0");
set_cvar_string("mp_round_infinite", "0");

#if defined STOP_STATS
set_cvar_num("csstats_pause", 0);
#endif

#if defined BLOCK
DisableHookChain(fwd_BlockEntity);
#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

remove_task(TASK_TIMER_ID);
}

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);
}
разминка работает, но в консоль сервера и в логи больше 100 таких сообщений
L 01/03/2023 - 20:34:28: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/03/2023 - 20:34:28: [ReAPI] SetHookChainReturn: trying to set return value with incompatible type, expected 'ATYPE_BOOL'; got 'ATYPE_INTEGER'
L 01/03/2023 - 20:34:28: [AMXX] Run time error 10 (plugin "random_weapons_warmup.amxx") (native "SetHookChainReturn") - debug not enabled!
L 01/03/2023 - 20:34:28: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
 
В этой теме было размещено решение! Перейти к решению.
Сообщения
893
Реакции
149
Помог
25 раз(а)
Код:
-SetHookChainReturn(ATYPE_INTEGER, true);
Код:
+SetHookChainReturn(ATYPE_BOOL, true);
Попробуй заменить (122 строка).
 

RockTheStreet

Саппорт года
Сообщения
1,743
Реакции
344
Помог
40 раз(а)
Обратите внимание, если вы хотите заключить сделку с этим пользователем, он заблокирован
ImmortalAmxx, Надо было ему показать как поиском на форуме пользоваться, а не вот это вот всё.
Эх, не по ГОСТу ты делаешь...
 
Статус
В этой теме нельзя размещать новые ответы.

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

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