Не выдаётся мут!

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
50
Реакции
1
Помог
1 раз(а)
Ошибка
[ReAPI] SetHookChainReturn: trying to set return value with incompatible type, expected 'ATYPE_BOOL'; got 'ATYPE_INTEGER'

[AMXX] Run time error 10 (plugin "ucc.amxx") (native "SetHookChainReturn") - debug not enabled!
[AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
[ReAPI] SetHookChainReturn: trying to set return value with incompatible type, expected 'ATYPE_BOOL'; got 'ATYPE_INTEGER'
ОС
Linux
Amx Mod X
AMX Mod X 1.9.0.5294
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.13.0.788-dev
Build date: 07:36:33 Jul 12 2023 (3378)
ReGamedll
ReGameDLL version: 5.22.0.593-dev
Build date: 03:10:30 Jul 11 2023
Версия Metamod
Metamod v1.21p37 2013/05/30 (5:13)
by Will Day
http://www.metamod.org/
Patch: Metamod-P (mm-p) v37
by Jussi Kivilinna
http://metamod-p.sourceforge.net/
compiled: May 30 2013, 11:41:16 EET (optimized)
Список метамодулей
[ 1]
[ 2] Reunion RUN - reunion_mm_i386. v0.1.92d ini Start Never
[ 3] AMX Mod X RUN - amxmodx_mm_i386. v1.9.0.5 ini Start ANY
[ 4] ReSemiclip RUN - resemiclip_mm_i3 v2.3.9 ini Chlvl ANY
[ 5] WHBlocker RUN - whblocker_mm_i38 v1.5.697 ini Chlvl ANY
[ 6] ReSRDetector RUN - resrdetector_mm_ v0.1.0 ini Chlvl ANY
[ 7] Rechecker RUN - rechecker_mm_i38 v2.7 ini Chlvl ANY
[ 8] VoiceTranscoder RUN - VoiceTranscoder. v2017RC5 ini ANY ANY
[ 9] MySQL RUN - mysql_amxx_i386. v1.9.0.5 pl3 ANY ANY
[10] FakeMeta RUN - fakemeta_amxx_i3 v1.9.0.5 pl3 ANY ANY
[11] ReAPI RUN - reapi_amxx_i386. v5.22.0. pl3 ANY Never
[12] CSX RUN - csx_amxx_i386.so v1.9.0.5 pl3 ANY ANY
[13] Ham Sandwich RUN - hamsandwich_amxx v1.9.0.5 pl3 ANY ANY
[14] Engine RUN - engine_amxx_i386 v1.9.0.5 pl3 ANY ANY
[15] CStrike RUN - cstrike_amxx_i38 v1.9.0.5 pl3 ANY ANY
[16] Fun RUN - fun_amxx_i386.so v1.9.0.5 pl3 ANY ANY
[17] ReAimDetector RUN - reaimdetector_am v0.2.2 pl3 ANY Never
17 plugins, 16 running
Список плагинов
[  1] FreshBans               1.4.8b      kanagava          fresh_bans_148-  running  
[ 2] Admin Loader 3.5 neygomon admin_loader.am running
[ 3] Admin Base 1.9.0.5294 AMXX Dev Team admin.amxx running
[ 4] Admin Commands 1.9.0.5294 AMXX Dev Team admincmd.amxx running
[ 5] Admin Help 1.9.0.5294 AMXX Dev Team adminhelp.amxx running
[ 6] Slots Reservation 1.9.0.5294 AMXX Dev Team adminslots.amxx running
[ 7] Multi-Lingual System 1.9.0.5294 AMXX Dev Team multilingual.am running
[ 8] Commands Menu 1.9.0.5294 AMXX Dev Team cmdmenu.amxx running
[ 9] Players Menu 1.9.0.5294 AMXX Dev Team plmenu.amxx running
[ 10] Teleport Menu 1.9.0.5294 AMXX Dev Team telemenu.amxx running
[ 11] Maps Menu 1.9.0.5294 AMXX Dev Team mapsmenu.amxx 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] Anti Flood 1.9.0.5294 AMXX Dev Team antiflood.amxx running
[ 15] Scrolling Message 1.9.0.5294 AMXX Dev Team scrollmsg.amxx running
[ 16] Info. Messages 1.9.0.5294 AMXX Dev Team imessage.amxx running
[ 17] Admin Votes 1.9.0.5294 AMXX Dev Team adminvote.amxx running
[ 18] NextMap 1.9.0.5294 AMXX Dev Team nextmap.amxx stopped
[ 19] Nextmap Chooser 1.9.0.5294 AMXX Dev Team mapchooser.amxx stopped
[ 20] TimeLeft 1.9.0.5294 AMXX Dev Team timeleft.amxx running
[ 21] Pause Plugins 1.9.0.5294 AMXX Dev Team pausecfg.amxx running
[ 22] Stats Configuration 1.9.0.5294 AMXX Dev Team statscfg.amxx running
[ 23] AES: StatsX 0.5+1 serfreeman1337 aes_statsx_cstr running
[ 24] CSStatsX SQL 0.7.4+2 serfreeman1337 csstatsx_sql.am running
[ 25] CSXSQL: Onlinetime Awa 0.2 serfreeman1337 csstatsx_playti running
[ 26] SF Bets 0.1.6 serfreeman1337 sf_bets.amxx running
[ 27] AMX Mute 1.1 Nomad mute.amxx running
[ 28] Team Semiclip 2.0.0 schmurgel1983 cs_team_semicli running
[ 29] Info Rank 0.1 by CepeH9 INFO_RANK_V0.1. running
[ 30] DHud Win Status 1.0.2 BiZaJe DhudWinStatus.a running
[ 31] Knife kill 1.0.1 MurLemur knife_kill_soun running
[ 32] [DD] Quick defuse 1.0 Deadly|Darkness dd_qdefuse.amxx running
[ 33] [Customizable] AmxModM 0.0.5 Albertio amxmodmenu.amxx running
[ 34] Weapon Icon 1.2 hoboman313/Zenix weapon_icon.amx running
[ 35] Back Weapons 1.1 Cheap_Suit backweapons.amx running
[ 36] First Person Death 1.0 Numb first_person_de running
[ 37] Kills Counter 1.0 Safety1st killscounter.am running
[ 38] GameName 1.0 Lonkura GameName.amxx running
[ 39] Info After Death 0.0.3 Albertio info_after_deat running
[ 40] Parachute for ALL [ReA 3.0 Leo_[BH] parachute_for_a running
[ 41] Killa HP 1.0 jas0n killa_hp.amxx running
[ 42] Team Flash Control 1.1 Tender Team_Flash_Cont running
[ 43] C4 CD Voice 1.1 TTuCTOH c4cdvoice.amxx running
[ 44] Autoresponder/Advertis 0.5 MaximusBrood ad_manager.amxx running
[ 45] online_play 1 A1v anew.amxx running
[ 46] IDEAL VIP 3 c xepoM] 15% oT Ba/lePa ideal_vip_gold. running
[ 47] Custom Smoke 1.07 bionext custom_smoke.am running
[ 48] Mode 2x2 1.9 s1lent mode.amxx running
[ 49] [ReAPI] Healthnade 0.0.11f DEV-CS.RU Commun reapi_healthnad running
[ 50] Join/Leave Message 1.2 BigBaller WhoVistServer.a running
[ 51] Grenade Trail 1.0 Jim grenade_trail.a running
[ 52] CSNadeDrops 0.14 Avalanche csnadedrops.amx running
[ 53] Reset_Score 1.0 9 rpamm!? Resetscore.amxx running
[ 54] Models Replacement 0.0.2 ConnorMcLeod | V models_replacem running
[ 55] Damager 2.0 Prayer damager.amxx running
[ 56] Crux Ansata 1.0 DUKKHAZ0R crux_ansata.amx running
[ 57] [GM] VIP Test 1.2.0 [GM] NWC gm_vip_test.amx running
[ 58] Auto-Give Privileges 1.0 SerGrib night_vips.amxx running
[ 59] Auto recording demo 2.0 IzI | Bonaqua (R amx_autodemorec running
[ 60] Top Round Damage 1.0.4 ReAP Dager* *.* -G- top_round_damag running
[ 61] Block Unknown Command Alpha WPMG PRoSToTeM@ BlockUnknownCom running
[ 62] Lite Translit 2.8 neygomon lite_translit_s running
[ 63] unknown unknown unknown stats.amxx bad load
[ 64] Admin Spectator ESP 1.3 KoST admin_spec_esp. running
[ 65] Team Balance Control 1.3.9 gyxoBka TeamBalanceCont running
[ 66] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 67] Ultimate Chats Control 5.2(c) neygomon ucc.amxx running
[ 68] unknown unknown unknown ucc_api_example running
[ 69] UCC Addon: VoteGAG 1.2 neygomon ucc_votegag.amx running
[ 70] Map Manager 2.5.61 Mistrick mapmanager.amxx running
[ 71] Map Manager: Sub Plugi 0.1 Mistrick mapmanager_subp running
[ 72] Custom Player Models T 0.2.1 BlackSignature custom_player_m debug
[ 73] Custom Player Models C 0.2.2 BlackSignature custom_player_m debug
[ 74] Custom Player Models A 0.2.4 F@nt0M & BlackSi custom_player_m debug
[ 75] Weather System 2.9c UFPS.Team sneg.amxx running
[ 76] SnowMan 1.0 OverGame snow_man.amxx running
[ 77] Christmas_C4 1.0 MANCHIMOCYRUS Christmas_C4.am running
[ 78] Santa Hat + Snow 1.3 xPaw SantaHat.amxx running
[ 79] unknown unknown unknown ak47_VIP_G.amxx running
[ 80] unknown unknown unknown m4a1_G.amxx running
[ 81] unknown unknown unknown ak47_VIP_F.amxx running
[ 82] unknown unknown unknown m4a1_VIP_F.amxx running
[ 83] unknown unknown unknown m4a1_premium.am running
[ 84] unknown unknown unknown ak47_premium.am running
[ 85] ServerMenu 1.0 Fl1pping menu.amxx running
[ 86] PremMenu 1.0 Fl1pping premmenu.amxx running
[ 87] Privilegii 1.0 Fl1pping privmenu.amxx running
[ 88] Gl.AdminMenu 1.0 Fl1pping gladmin.amxx running
[ 89] VIPFMENU 1.0 Fl1pping vipfmenu.amxx running
[ 90] New Plug-In 1.0 author girlmenu.amxx running
[ 91] Revive Teammates: Core 1.1.6 ufame & Albertio rt_core.amxx running
[ 92] Revive Teammates: Plan 1.1.6 ufame & Albertio rt_planting.amx running
[ 93] Revive Teammates: Rest 1.1.6 ufame & Albertio rt_restrictions running
[ 94] Revive Teammates: Time 1.1.6 ufame & Albertio rt_timer.amxx running
[ 95] Revive Teammates: Effe 1.1.6 ufame & Albertio rt_effects.amxx running
[ 96] Revive Teammates: Soun 1.1.6 ufame & Albertio rt_sounds.amxx running
[ 97] Revive Teammates: Bonu 1.1.6 ufame & Albertio rt_bonus.amxx running
[ 98] Advanced Experience Sy 0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 99] AES: CStrike Addon 0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[100] AES: Informer 0.5.9 [REA serfreeman1337/s aes_informer.am running
[101] AES: Admin Tools 0.5.9 [REA serfreeman1337/s aes_exp_editor. running
[102] AES: Bonus System 0.5.9 Vega serfreeman1337/s aes_bonus_syste running
[103] AES: Bonus CSTRIKE 0.5.9.1 [R serfreeman1337/s aes_bonus_cstri running
( 63) Load fails: Plugin file open error (plugin "stats.amxx")
103 plugins, 100 running
Автор плагина
neygomon
Версия плагина
5.2(c)
Исходный код
(Прикрепил)
На сервере открывается меню, всё нормально, пытаюсь выдать мут,но мут не выдаётся, т.к. игрок может писать, но в чате пишет, что мут выдан) Помогите, пожалуйста!
 
В этой теме было размещено решение! Перейти к решению.

Вложения

  • 33.6 KB Просмотры: 34
Сообщения
3,579
Реакции
1,569
Помог
137 раз(а)
Нужно заменить ATYPE_INTEGER на ATYPE_BOOL, в ошибке же написано.
Код:
public CanPlayerHearPlayer_Pre(const iReciever, const iSender)
{
    if(iSender != iReciever)
    {
        if(g_PlayerMute[iReciever][iSender])
        {
-           SetHookChainReturn(ATYPE_INTEGER, false);
+           SetHookChainReturn(ATYPE_BOOL, false);
            return HC_SUPERCEDE;
        }
    }
    return HC_CONTINUE;
}
 
Сообщения
50
Реакции
1
Помог
1 раз(а)
Nordic Warrior, Хорошо. Я сделал, теперь на сервере у игрока пишет: [LowStats]. Но это скорее всего уже не в этом проблема. Спасибо!
 
Сообщения
1,082
Реакции
58
Помог
11 раз(а)
Mem4ik, а правильнее сделать переменную g_PlayerMute[MAX_PLAYERS + 1][MAX_PLAYERS + 1] в bool(ую), но это так предложение. Почему SetHookChainReturn(ATYPE_BOOL, false);
/*
* Description: It's called when a player hears another player.
* Return type: bool
* Params: (const listener, const sender)
*/
RG_CSGameRules_CanPlayerHearPlayer
 
Последнее редактирование:
Сообщения
50
Реакции
1
Помог
1 раз(а)
Code_0xABC, Если я правильно Вас понял, то поменяли в исходнике ATYPE_INTEGER на ATYPE_BOOL , потому что была ошибка в консоли. А если Вы про сам код в исходнике, то я не знаю, он уже изначально там был
 
Сообщения
1,082
Реакции
58
Помог
11 раз(а)
Потому что неправильно было
 
Сообщения
50
Реакции
1
Помог
1 раз(а)
wood-grouse, Это я даже не пытаюсь исправить, потому что вроде как он мне не нужен
 
Статус
В этой теме нельзя размещать новые ответы.

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

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