Admin menu csdm.

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
76
Реакции
3
Помог
1 раз(а)
Ошибка
[AMXX] Displaying debug trace (plugin "admin_menu.amxx", version "v 1.0")
[AMXX] Run time error 4: index out of bounds
[AMXX] [0] admin_menu.sma::cmd_gun_ADMIN (line 206)
ОС
Linux
Amx Mod X
AMX Mod X 1.9.0.5249
Билд
ReHLDS version: 3.6.0.675-dev
Build date: 17:01:39 Jul 30 2019 (1935)
ReGamedll
ReGameDLL version: 5.20.0.492-dev
Build date: 15:26:35 Jan 4 2021
Версия Metamod
Metamod-r v1.3.0.128, API (5:13)
Metamod-r build: 17:47:54 Aug 24 2018
Список метамодулей
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] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 3] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC5 ini ANY ANY
[ 4] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5249 ini Start ANY
[ 5] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 6] CSSB RUN - cssb_amxx_i386.so v6-12.12.2020 pl4 ANY ANY
[ 7] ReAPI RUN - reapi_amxx_i386.so v5.19.0.211-dev pl4 ANY Never
[ 8] Engine RUN - engine_amxx_i386.so v1.9.0.5249 pl4 ANY ANY
[ 9] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5249 pl4 ANY ANY
[10] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5249 pl4 ANY ANY
[11] MySQL RUN - mysql_amxx_i386.so v1.9.0.5249 pl4 ANY ANY
[12] CSX RUN - csx_amxx_i386.so v1.9.0.5249 pl4 ANY ANY
[13] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5249 pl4 ANY ANY
[14] Fun RUN - fun_amxx_i386.so v1.9.0.5249 pl4 ANY ANY
[15] ReCSDM RUN - csdm_amxx_i386.so v3.6 pl4 ANY ANY
15 plugins, 15 running
Список плагинов
name version author file status
[ 1] [190] Ultimate Models 21.08.23BE SKAJIbnEJIb ultimate_models running
[ 2] FreshBans 1.4.6b kanagava fresh_bans_146- running
[ 3] GameCMS_API 5.5.5 zhorzh78 gamecms_api.amx debug
[ 4] GameCMS_GagManager 2.2.7 ReAp zhorzh78 gamecms_gagmana running
[ 5] From Rock to Ban 1.02 Safety1st++ rock2gag.amxx running
[ 6] [190] Radio RBS 20.06.06 SKAJIbnEJIb radio_rbs.amxx running
[ 7] [190] MapChooser RBS 20.08.02 SKAJIbnEJIb & UF mapchooser_rbs. running
[ 8] [190] NextMap 18.09.25 SKAJIbnEJIb & AM nextmap.amxx running
[ 9] [190] TimeLeft 18.09.25 SKAJIbnEJIb & AM timeleft.amxx running
[ 10] [190] CsStats MySQL 21.08.22BE SKAJIbnEJIb csstats_mysql.a running
[ 11] [190] CsStats Editor 20.06.06 SKAJIbnEJIb csstats_editor. running
[ 12] [190] Skill ELO 21.08.22BE SKAJIbnEJIb skill_elo.amxx running
[ 13] [190] Top Award RBS 20.06.06 SKAJIbnEJIb topaward_rbs.am running
[ 14] [190] Army Ranks Ultim 20.06.06 SKAJIbnEJIb army_ranks_ulti running
[ 15] Stats Configuration 20.06.06 SKAJIbnEJIb & AM statscfg_rbs.am running
[ 16] [190] StatsX RBS 21.03.23 SKAJIbnEJIb & AM statsx_rbs.amxx running
[ 17] [190] Chat RBS 20.06.06 SKAJIbnEJIb chat_rbs.amxx running
[ 18] [190] Chat Addons 20.06.06 SKAJIbnEJIb chat_addons.amx running
[ 19] [190] Ultimate Flags 20.06.06 SKAJIbnEJIb ultimate_flags. running
[ 20] [190] BonusMenu RBS 21.08.23BE SKAJIbnEJIb bonusmenu_rbs.a running
[ 21] [190] Stuck RBS 20.06.06 SKAJIbnEJIb & NL stuck_rbs.amxx running
[ 22] [190] Ultimate Informe 21.03.23 SKAJIbnEJIb ultimate_inform running
[ 23] [190] Ad From Server 20.06.06 SKAJIbnEJIb ad_from_server. running
[ 24] Players Menu 20.06.06 SKAJIbnEJIb & AM admincmd_rbs.am running
[ 25] [190] AfkKicker RBS 20.08.02 SKAJIbnEJIb afkkicker_rbs.a running
[ 26] Commands Menu 20.06.06 SKAJIbnEJIb & AM cmdmenu_rbs.amx running
[ 27] Maps Menu 20.06.06 SKAJIbnEJIb & AM mapsmenu_rbs.am running
[ 28] [190] High Ping Kicker 20.06.06 SKAJIbnEJIb hpk_rbs.amxx running
[ 29] [190] Map Spawns Edito 20.06.06 SKAJIbnEJIb & iG MapSpawnsEditor running
[ 30] [190] Nick FIX RBS 20.06.06 SKAJIbnEJIb nickfix_rbs.amx running
[ 31] Restrict Weapons 20.06.06 SKAJIbnEJIb & AM restmenu_rbs.am running
[ 32] [190] VIP RBS 20.07.20 SKAJIbnEJIb vip_rbs.amxx running
[ 33] [190] Damager RBS 20.06.06 SKAJIbnEJIb damager_rbs.amx running
[ 34] [190] Chat Controller 20.06.06 SKAJIbnEJIb chat_controller running
[ 35] [190] AC Spectator ESP 20.06.06 SKAJIbnEJIb & Ko ac_esp.amxx running
[ 36] [190] VoteBan RBS 20.06.06 SKAJIbnEJIb voteban_rbs.amx running
[ 37] Camera Changer 1.3 Bl0ck Camera_Changer. running
[ 38] AmxModMenu v 1.1 Bitter menufront.amxx running
[ 39] Plugin Menu 1.9.0.5249 AMXX Dev Team pluginmenu.amxx running
[ 40] Admin Chat 1.9.0.5249 AMXX Dev Team adminchat.amxx running
[ 41] [ReAPI] Custom Models 1.6.1 neugomon custom_models.a running
[ 42] CSSB Shop Menu CSDM 15.10.2018 SMaster cssbShopMenuCSD debug
[ 43] CSSB Capture Robot Gol 12.07.2020 SMaster cssbCaptureRobo running
[ 44] CSSB Multi Vampire 15.10.2018 SMaster cssbMultiVampir running
[ 45] CSSB Spawn Preset Capt 03.04.2016 SMaster cssbSpawnPreset running
[ 46] CSSB Goliath Sentry Gu 24.05.2020 SMaster cssbGoliathSent debug
[ 47] CSSB Menu Laser 19.03.2018 SMaster cssbMenuLaser.a running
[ 48] CSSB Dispenser 15.10.2018 SMaster cssbDispenser.a debug
[ 49] CSSB Tesla Coil 15.10.2018 SMaster cssbTeslaCoil.a debug
[ 50] CSSB Menu M4A1 10.03.2018 SMaster cssbMenuM4A1.am running
[ 51] CSSB Menu Awp 10.03.2018 SMaster cssbMenuAwp.amx running
[ 52] CSSB Menu Deagle 10.03.2018 SMaster cssbMenuDeagle. running
[ 53] CSSB Menu Ak47 10.03.2018 SMaster cssbMenuAk47.am running
[ 54] CSSB Menu M249 10.03.2018 SMaster cssbMenuM249.am running
[ 55] CSSB Menu Galil 10.03.2018 SMaster cssbMenuGalil.a running
[ 56] CSSB Menu Sg550 10.03.2018 SMaster cssbMenuSg550.a running
[ 57] CSSB Menu Bazooka 17.12.2017 SMaster cssbMenuBazooka running
[ 58] CSSB AWP Gold 10.03.2018 SMaster cssbAwpGold.amx debug
[ 59] CSSB AWP Asiimov 10.03.2018 SMaster cssbAwpAsiimov. debug
[ 60] CSSB AWP Golden Dragon 10.03.2018 SMaster cssbAwpGoldenDr debug
[ 61] CSSB Deagle Gold 10.03.2018 SMaster cssbDeagleGold. debug
[ 62] CSSB Deagle Asiimov 10.03.2018 SMaster cssbDeagleAsiim debug
[ 63] CSSB Deagle Ice Dragon 10.03.2018 SMaster cssbDeagleIceDr debug
[ 64] CSSB Deagle Golden Dra 10.03.2018 SMaster cssbDeagleGolde debug
[ 65] CSSB Ak47 Gold 10.03.2018 SMaster cssbAk47Gold.am debug
[ 66] CSSB Ak47 Gold 2 10.03.2018 SMaster cssbAk47Gold2.a debug
[ 67] CSSB Ak47 Ice 10.03.2018 SMaster cssbAk47Ice.amx debug
[ 68] CSSB Ak47 Paladin 10.03.2018 SMaster cssbAk47Paladin debug
[ 69] CSSB M4A1 Gold 10.03.2018 SMaster cssbM4A1Gold.am debug
[ 70] CSSB M4A1 Gold 2 10.03.2018 SMaster cssbM4A1Gold2.a debug
[ 71] CSSB M4A1 Beast 10.03.2018 SMaster cssbM4A1Beast.a debug
[ 72] CSSB M4A1 Golden Drago 10.03.2018 SMaster cssbM4A1GoldenD debug
[ 73] CSSB Galil Coup 10.03.2018 SMaster cssbGalilCoup.a debug
[ 74] CSSB Galil Dark Knight 10.03.2018 SMaster cssbGalilDarkKn debug
[ 75] CSSB Sg550 VSK-94 10.03.2018 SMaster cssbSg550-VSK-9 debug
[ 76] CSSB Destroyer 04.01.2018 SMaster cssbDestroyer.a debug
[ 77] CSSB Bazooka 15.10.2018 SMaster cssbBazooka.amx debug
[ 78] CSSB Mini Gun 10.03.2018 SMaster cssbMiniGun.amx debug
[ 79] CSSB Mini Gun Winter 10.03.2018 SMaster cssbMiniGunWint debug
[ 80] CSSB Mini Gun Gold 10.03.2018 SMaster cssbMiniGunGold debug
[ 81] CSSB Laser Mines 15.10.2018 SMaster cssbLaserMines. debug
[ 82] CSSB Laser Mines Verti 15.10.2018 SMaster cssbLaserMinesV debug
[ 83] CSSB Laser Mines Horiz 15.10.2018 SMaster cssbLaserMinesH debug
[ 84] CSSB Laser Scanner 15.10.2018 SMaster cssbLaserMinesS debug
[ 85] CSSB Laser Fence 15.10.2018 SMaster cssbLaserFence. debug
[ 86] ReCSDM Main 3.6 ReCSDM Team csdm_main.amxx running
[ 87] ReCSDM Equip 3.6 ReCSDM Team csdm_equip.amxx running
[ 88] ReCSDM Spawns 3.6 ReCSDM Team csdm_spawn_pres running
[ 89] ReCSDM Misc 3.6 ReCSDM Team csdm_misc.amxx running
[ 90] ReCSDM Stripper 3.6 KWo csdm_stripper.a running
[ 91] ReCSDM Protection 3.6 BAILOPAN csdm_protection running
[ 92] CSSB Skills Pump Syste 15.10.2018 SMaster cssbSkillsPumpS running
[ 93] CSSB Skills Pump Armor 05.05.2016 SMaster cssbSkillsPumpA running
[ 94] CSSB Skills Pump Invis 04.12.2016 SMaster cssbSkillsPumpI running
[ 95] CSSB Skills Pump Speed 04.12.2016 SMaster cssbSkillsPumpS running
[ 96] CSSB Skills Pump Gravi 04.12.2016 SMaster cssbSkillsPumpG running
[ 97] CSSB Skills Pump Healt 05.05.2016 SMaster cssbSkillsPumpH running
[ 98] CSSB Skills Pump Show 04.06.2016 SMaster cssbSkillsPumpS running
[ 99] [ZP] Extra Item: No Re 0.1.0 fezh zp_norecoil.amx running
[100] VIP MENU v 1.0 Bitter vip_menu.amxx debug
[101] ADMIN MENU v 1.0 Bitter admin_menu.amxx debug
[102] BOSS MENU v 1.0 Bitter boss_menu.amxx debug
[103] ServerMenu CSDM v 1.0 Bitter menu_servera.am debug
[104] VIP/ADMIN GUN v 1.0 Bitter menupriv.amxx debug
[105] Teleport Smoke Grenade 0.1 VEN teleport_smokeg running
[106] Spec Switch 0.0.3 many Spec_Switch_rus running
[107] Unlimited Clip Ammo 1.0 -Acid- ammo_menu.amxx running
[108] bot ping as real playe 1.0 bionext bot_ping_as_rea running
[109] GameName Changer 1.0 neugomon gamename_change running
[110] Donate money 0.1 Sanlerus \ di.al donate_money.am running
[111] ADMIN GUN v 1.0 Bitter menu.amxx running
[112] ResetScore 1.0 Leo_[BH] resetscore_reap running
[113] ADMIN MENU v 1.0 Bitter adminmenu.amxx running
[114] Recoil Control 1.5 OT recoil_control_ running
[115] WalkGuard 1.3.2 mogel walkguard.amxx running
[116] Auto Team Balance Adva 1.5.1 Radius auto_team_balan running
116 plugins, 116 running
Автор плагина
Bitter
Версия плагина
1.0
Исходный код
приложил
Проблема начала возникать когда добавили
Код:
new Health = get_user_health(id)
new armor = get_user_armor(id)
if(Health + 400 >= 1000 || armor + 400 >= 1000)
{
    client_print_color(id, 0, "%L", LANG_PLAYER,"MNOGO_HPAP");
} else {
    if (ADMINMenuTime_HP_AP[id] > get_systime())
    {
        menu_ADMIN(id)
        return PLUGIN_HANDLED;
    }
    client_print_color(id, 0, "%L", LANG_PLAYER,"TAKES_ADMIN_HPAR");
   
    new health[32]
    health[id] = get_user_health(id)
    set_user_health(id,health[id] + 400)
   
    new armor[32]
    armor[id] = get_user_armor(id)
    set_user_armor(id,armor[id] + 400)
   
    ADMINMenuTime_HP_AP[id] = get_systime(ADMIN_DELAY_HP_AP);
    menu_ADMIN(id)
}
 
В этой теме было размещено решение! Перейти к решению.

Download all Attachments

Сообщения
890
Реакции
149
Помог
25 раз(а)
Зачем вообще получать 2 раза жизни в разные массивы?
C++:
new Health = get_user_health(id) <--
new armor = get_user_armor(id) <--
if(Health + 400 >= 1000 || armor + 400 >= 1000)
{
    client_print_color(id, 0, "%L", LANG_PLAYER,"MNOGO_HPAP");
} else {
    if (ADMINMenuTime_HP_AP[id] > get_systime())
    {
        menu_ADMIN(id)
        return PLUGIN_HANDLED;
    }
    client_print_color(id, 0, "%L", LANG_PLAYER,"TAKES_ADMIN_HPAR");
 
    new health[32] <--
    health[id] = get_user_health(id)
    set_user_health(id,health[id] + 400)
 
    new armor[32] <--
    armor[id] = get_user_armor(id)
    set_user_armor(id,armor[id] + 400)
 
    ADMINMenuTime_HP_AP[id] = get_systime(ADMIN_DELAY_HP_AP);
    menu_ADMIN(id)
}
Можно так сделать:
C++:
new Health = get_user_health(id)
new armor = get_user_armor(id)
if(Health + 400 >= 1000 || armor + 400 >= 1000)
{
    client_print_color(id, 0, "%L", LANG_PLAYER,"MNOGO_HPAP");
} else {
    if (ADMINMenuTime_HP_AP[id] > get_systime())
    {
        menu_ADMIN(id)
        return PLUGIN_HANDLED;
    }
    client_print_color(id, 0, "%L", LANG_PLAYER,"TAKES_ADMIN_HPAR");
 
    set_user_health(id, Health + 400)
    set_user_armor(id, armor + 400)
 
    ADMINMenuTime_HP_AP[id] = get_systime(ADMIN_DELAY_HP_AP);
    menu_ADMIN(id)
}
А вообще, зачем юзать такой старый код?
 
Последнее редактирование:
Сообщения
76
Реакции
3
Помог
1 раз(а)
@Benzogang_BabyTape,Тогда отпиши мне в вк обговорим vk.com/sannech
 
Сообщения
76
Реакции
3
Помог
1 раз(а)
Спасибо, за помощь, можно закрывать!
 
Статус
В этой теме нельзя размещать новые ответы.

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

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