csdm menu problem

Сообщения
271
Реакции
43
Помог
5 раз(а)
Ошибка
L 03/28/2020 - 23:56:50: Player 28 is not in game.
L 03/28/2020 - 23:56:50: [AMXX] Displaying debug trace (plugin "csdm_equip_v2.amxx", version "3.6")
L 03/28/2020 - 23:56:50: [AMXX] Run time error 10: native error (native "menu_display")
L 03/28/2020 - 23:56:50: [AMXX] [0] csdm_equip_v2.sma::m_SecHandler (line 830)
ОС
Linux
Amx Mod X
AMX Mod X 1.10.0.5392 (http://www.amxmodx.org)
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.7.0.693-dev
Build date: 18:20:58 Jan 28 2020 (2117)
Build from: https://github.com/dreamstalker/rehlds/commit/c4cecf5
ReGamedll
ReGameDLL version: 5.14.0.456-dev
Build date: 12:02:14 Mar 13 2020
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/9461d03
Версия Metamod
Metamod-r v1.3.0.128, API (5:13)
Metamod-r build: 17:47:54 Aug 24 2018
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/0cf2f70
Список метамодулей
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] Reunion RUN - reunion_mm_i386.so v0.1.0.135 ini Start Never
[ 2] WHBlocker RUN - whblocker_mm_i386.so v1.5.696 ini Chlvl ANY
[ 3] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC5 ini ANY ANY
[ 4] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 5] AMX Mod X RUN - amxmodx_mm_i386.so v1.10.0.5392 ini Start ANY
[ 6] ReCSDM RUN - csdm_amxx_i386.so v3.6 pl5 ANY ANY
[ 7] MySQL RUN - mysql_amxx_i386.so v1.10.0.5392 pl5 ANY ANY
[ 8] CSX RUN - csx_amxx_i386.so v1.10.0.5390 pl5 ANY ANY
[ 9] FakeMeta RUN - fakemeta_amxx_i386.so v1.10.0.5392 pl5 ANY ANY
[10] GeoIP RUN - geoip_amxx_i386.so v1.10.0.5392 pl5 ANY ANY
[11] Engine RUN - engine_amxx_i386.so v1.10.0.5392 pl5 ANY ANY
[12] Fun RUN - fun_amxx_i386.so v1.10.0.5392 pl5 ANY ANY
[13] CStrike RUN - cstrike_amxx_i386.so v1.10.0.5390 pl5 ANY ANY
[14] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.10.0.5392 pl5 ANY ANY
[15] ReAPI RUN - reapi_amxx_i386.so v5.12.0.192-dev pl5 ANY Never
Список плагинов
Currently loaded plugins:
name version author file status
[ 1] Aliases checker 1.0.6 kanagava alias_detector_ running
[ 2] AMXBans 5.1rc YoMama/Lux & lan amxbanstest.amx running
[ 3] Admin Base (SQL) 1.8.3-dev+ AMXX Dev Team admindbusers.am running
[ 4] Admin Commands 1.10.0.539 AMXX Dev Team admincmd.amxx running
[ 5] Admin Help 1.10.0.539 AMXX Dev Team adminhelp.amxx running
[ 6] Slots Reservation 1.10.0.539 AMXX Dev Team adminslots.amxx running
[ 7] Multi-Lingual System 1.10.0.539 AMXX Dev Team multilingual.am running
[ 8] Menus Front-End 1.10.0.539 AMXX Dev Team menufront.amxx running
[ 9] Commands Menu 1.10.0.539 AMXX Dev Team cmdmenu.amxx running
[ 10] Players Menu 1.10.0.539 AMXX Dev Team plmenu.amxx running
[ 11] Maps Menu 1.10.0.539 AMXX Dev Team mapsmenu.amxx running
[ 12] Plugin Menu 1.10.0.539 AMXX Dev Team pluginmenu.amxx running
[ 13] Admin Chat 1.10.0.539 AMXX Dev Team adminchat.amxx running
[ 14] Anti Flood 1.10.0.539 AMXX Dev Team antiflood.amxx running
[ 15] Scrolling Message 1.10.0.539 AMXX Dev Team scrollmsg.amxx running
[ 16] Info. Messages 1.10.0.539 AMXX Dev Team imessage.amxx running
[ 17] Admin Votes 1.10.0.539 AMXX Dev Team adminvote.amxx running
[ 18] NextMap 1.10.0.539 AMXX Dev Team nextmap.amxx running
[ 19] Nextmap Chooser 1.10.0.539 AMXX Dev Team mapchooser.amxx running
[ 20] TimeLeft 1.10.0.539 AMXX Dev Team timeleft.amxx running
[ 21] Stats Configuration 1.10.0.539 AMXX Dev Team statscfg.amxx running
[ 22] StatsX GUI 1.8 AMXX Dev Team statsx_gui_skil running
[ 23] Center Msg Fix 0.3 mx?! CenterMsgFix.am running
[ 24] Kick Spamers 1.0.3 gyxoBka KickSpamer.amxx running
[ 25] Something 1.0 Mantvydas motd.amxx running
[ 26] AMX SSBan 2.6 God@Dorin\Fysiks amx_ssban.amxx running
[ 27] unknown unknown unknown max_frag_kick.a running
[ 28] Map Spawns Editor 1.0.16 iG_os Map_Spawns_Edit running
[ 29] Sentry guns 0.5.4 JGHG & GlobalMod gmsentryguns.am running
[ 30] Only Admin Spectators 2.1 GHW_Chronic GHW_Admin_Spec. running
[ 31] MultiJump 1.1 twistedeuphoria multijump.amxx running
[ 32] Client Autoexec on Con 1.0 Torch client_autoexec running
[ 33] VIP Eng Version 2.05 Dunno VIP.amxx running
[ 34] VIP 0.3 wasntme/Caldeum vipmenus0.amxx running
[ 35] CS Shop 5.0 iNeedHelp CS_Shop.amxx running
[ 36] Admin Hook 1.0 AssKicR adminhook.amxx running
[ 37] say /uzas 1.1 Pa1n uzas.amxx running
[ 38] say /pirkti 1.1 Pa1n pirkti.amxx running
[ 39] Laser/Tripmine Entity 2.3 SandStriker ln2.amxx running
[ 40] Automatic Unstuck 1.5 NL)Ramon(NL stuck.amxx running
[ 41] plugin_comenzi 1.0 neutron transfer.amxx running
[ 42] Napalm Nades 1.3a MeRcyLeZZ napalm_nades.am running
[ 43] Reset Score 0.2 Silenttt / CepeH advanced_resets running
[ 44] putinserver menu 0.1 X-factor menuv2.amxx running
[ 45] Team Balancer 1.8b3 Ptahhotep ptb.amxx running
[ 46] Portal 1.0 DarkGL & R3X portal.amxx running
[ 47] New Year Admin Models 1.1.1 slash ny_admin_models running
[ 48] Admin Money Give 0.10 Avalanche agm.amxx running
[ 49] Mega Shop 1.2 TheArmagedon mega_shop.amxx running
[ 50] Auto Restart vl 1.4 vato loco [GE-S] auto_restart_vl running
[ 51] Advanced Roll The Dice v2.5 RC 4 Striker roll_the_dice.a running
[ 52] Knife For Money 0.0.1 Exolent knifemoney.amxx debug
[ 53] MONEY-GIVE 1.05 +ARUKARI- donate.amxx running
[ 54] Autoresponder/Advertis 0.5 MaximusBrood ad_manager.amxx running
[ 55] Swear Replacement 1.5 kaboomkazoom anti_reklama.am running
[ 56] Build Dispenser #1.0.3 tuty BuildDispenser. running
[ 57] Grenade Trail 1.0 Jim grenade_trail.a running
[ 58] Lite Admin ESP 1.1 neygomon, AcE admin_esp.amxx running
[ 59] ColorChat 0.3.2 ConnorMcLeod colorchat.amxx running
[ 60] All Chat 1.1 Ian Cammarata allchat.amxx running
[ 61] unknown unknown unknown csteam_bonus_a2 running
[ 62] CSDM Main 2.1.3d CSDM Team csdm_main.amxx running
[ 63] CSDM Equip 3.6 CSDM Team csdm_equip_v2.a debug
[ 64] CSDM Spawns 2.1.3d CSDM Team csdm_spawn_pres running
[ 65] CSDM Spawn Editor 2.1.1 CSDM Team spawn_editor.am running
[ 66] CSDM Misc 2.1.3d CSDM Team csdm_misc.amxx running
[ 67] CSDM Protection 2.1.3d BAILOPAN csdm_protection running
[ 68] CSDM FFA 2.1.3d CSDM Team csdm_ffa.amxx running
[ 69] CSDM Item Mode 2.1.3d FALUCO & KWo & S csdm_itemmode.a running
[ 70] WeaponMod 1.2a DevconeS weaponmod.amxx running
[ 71] WPN GameInfo CS 0.82 DevconeS wpn_gameinfo_cs running
[ 72] WPN Crossbow ( HL1 ) 1.0.2 Arkshine wpn_crossbow.am running
[ 73] WPN DISRUPTOR 5.1 DevconeS wpn_disruptor.a running
[ 74] WPN Buysystem 0.8 DevconeS wpn_buysystem.a running
[ 75] Weapon Drop Blocker 0.53 DevconeS wpn_dropblocker running
75 plugins, 75 running
Автор плагина
CSDM Team
Версия плагина
3.6
Исходный код
....
and compilng problems to

//AMXXPC compile.exe
// by the AMX Mod X Dev Team


//// csdm_equip_v2.sma
//
// C:\Users\Lina\Desktop\scripting\scripting\csdm_equip_v2.sma(134) : warning 21
3: tag mismatch
// C:\Users\Lina\Desktop\scripting\scripting\csdm_equip_v2.sma(135) : warning 21
3: tag mismatch
// C:\Users\Lina\Desktop\scripting\scripting\csdm_equip_v2.sma(136) : warning 21
3: tag mismatch
// C:\Users\Lina\Desktop\scripting\scripting\csdm_equip_v2.sma(137) : warning 21
3: tag mismatch
// C:\Users\Lina\Desktop\scripting\scripting\csdm_equip_v2.sma(138) : warning 21
3: tag mismatch
// C:\Users\Lina\Desktop\scripting\scripting\csdm_equip_v2.sma(363) : warning 21
3: tag mismatch
// C:\Users\Lina\Desktop\scripting\scripting\csdm_equip_v2.sma(411) : warning 21
3: tag mismatch
// Header size: 2472 bytes
// Code size: 48680 bytes
// Data size: 35644 bytes
// Stack/heap size: 16384 bytes
// Total requirements: 103180 bytes
//
// 7 Warnings.
// Done.
//
// Compilation Time: 0,8 sec
// ----------------------------------------

Press enter to exit ...
 

Вложения

wellasgood

Кидала, мошенник, вымогатель
Сообщения
1,409
Реакции
182
Помог
2 раз(а)
Обратите внимание, если вы хотите заключить сделку с этим пользователем, он заблокирован
Код:
L 03/28/2020 - 23:56:50: Player 28 is not in game.
L 03/28/2020 - 23:56:50: [AMXX] Displaying debug trace (plugin "csdm_equip_v2.amxx", version "3.6")
L 03/28/2020 - 23:56:50: [AMXX] Run time error 10: native error (native "menu_display")
L 03/28/2020 - 23:56:50: [AMXX] [0] csdm_equip_v2.sma::m_SecHandler (line 830)
Good day, in the menu you need to make a check whether the player is connected, the error is due to the fact that the player left the server, and the menu is being worked out for him (opens).

Try this:

C++:
//Secondary Weapon Menu handler
public m_SecHandler(id, menu, item)
{
    if(!is_user_connected(id)){
       return PLUGIN_HANDLED;
    }

    // Get item info
    new cmd[6], iName[64]
    new access, callback
  
    menu_item_getinfo(menu, item, access, cmd,5, iName, 63, callback)
  
    new wep = str_to_num(cmd)
  
    new team = get_user_team(id)
    new weaptype = get_weaponid(g_Secondary[wep])

    if (((UsedWpsT[weaptype] < RestrictWps[weaptype]) && (team == _TEAM_T)
            || (UsedWpsCT[weaptype] < RestrictWps[weaptype]) && (team == _TEAM_CT))
      && !g_DisabledSec[wep])
    {
        copy(g_SecWeapons[id],17,g_Secondary[wep])
        equipUser(id, EQUIP_SEC)
    }
    else if (g_mSecStatus)
    {
        menu_display(id, g_SecMenuID, 0)
        return PLUGIN_HANDLED
    }

    // Show next menu here
  
    if (g_mPrimStatus)
    {
        menu_display(id, g_PrimMenuID, 0)
    }
    else if (g_mArmorStatus)
    {
        menu_display(id, g_ArmorMenuID, 0)
    }
    else if (g_mNadeStatus)
    {
        if (g_mAutoArmor)
        {
            equipUser(id, EQUIP_ARMOR)
        }
        menu_display(id, g_NadeMenuID, 0)
    }
    else
    {
        if (g_mAutoArmor)
        {
            equipUser(id, EQUIP_ARMOR)
        }
        if (g_mAutoNades)
        {
            equipUser(id, EQUIP_GREN)
        }
        equipUser(id, EQUIP_ITEMS)
    }
  
    return PLUGIN_HANDLED
}
Or so:

C++:
//Secondary Weapon Menu handler
public m_SecHandler(id, menu, item)
{
    // Get item info
    new cmd[6], iName[64]
    new access, callback
  
    menu_item_getinfo(menu, item, access, cmd,5, iName, 63, callback)
  
    new wep = str_to_num(cmd)
  
    new team = get_user_team(id)
    new weaptype = get_weaponid(g_Secondary[wep])

    if (((UsedWpsT[weaptype] < RestrictWps[weaptype]) && (team == _TEAM_T)
            || (UsedWpsCT[weaptype] < RestrictWps[weaptype]) && (team == _TEAM_CT))
      && !g_DisabledSec[wep])
    {
        copy(g_SecWeapons[id],17,g_Secondary[wep])
        equipUser(id, EQUIP_SEC)
    }
    else if (g_mSecStatus)
    {
        if(!is_user_connected(id)){
           return PLUGIN_HANDLED;
        }
        menu_display(id, g_SecMenuID, 0)
        return PLUGIN_HANDLED
    }

    // Show next menu here
  
    if (g_mPrimStatus)
    {
        menu_display(id, g_PrimMenuID, 0)
    }
    else if (g_mArmorStatus)
    {
        menu_display(id, g_ArmorMenuID, 0)
    }
    else if (g_mNadeStatus)
    {
        if (g_mAutoArmor)
        {
            equipUser(id, EQUIP_ARMOR)
        }
        menu_display(id, g_NadeMenuID, 0)
    }
    else
    {
        if (g_mAutoArmor)
        {
            equipUser(id, EQUIP_ARMOR)
        }
        if (g_mAutoNades)
        {
            equipUser(id, EQUIP_GREN)
        }
        equipUser(id, EQUIP_ITEMS)
    }
  
    return PLUGIN_HANDLED
}


You wrote:

29 Мар 2020
and compilng problems to


//AMXXPC compile.exe
// by the AMX Mod X Dev Team


//// csdm_equip_v2.sma
//
// C:\Users\Lina\Desktop\scripting\scripting\csdm_equip_v2.sma(134) : warning 21
3: tag mismatch
// C:\Users\Lina\Desktop\scripting\scripting\csdm_equip_v2.sma(135) : warning 21
3: tag mismatch
// C:\Users\Lina\Desktop\scripting\scripting\csdm_equip_v2.sma(136) : warning 21
3: tag mismatch
// C:\Users\Lina\Desktop\scripting\scripting\csdm_equip_v2.sma(137) : warning 21
3: tag mismatch
// C:\Users\Lina\Desktop\scripting\scripting\csdm_equip_v2.sma(138) : warning 21
3: tag mismatch
// C:\Users\Lina\Desktop\scripting\scripting\csdm_equip_v2.sma(363) : warning 21
3: tag mismatch
// C:\Users\Lina\Desktop\scripting\scripting\csdm_equip_v2.sma(411) : warning 21
3: tag mismatch
// Header size: 2472 bytes
// Code size: 48680 bytes
// Data size: 35644 bytes
// Stack/heap size: 16384 bytes
// Total requirements: 103180 bytes
//
// 7 Warnings.
// Done.
//
// Compilation Time: 0,8 sec
// ----------------------------------------

Press enter to exit ...
I tried to compile a separate part of the code, here's what came out, the flight is normal (amxx 1.9.0):

In .sma:

C++:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta>

new g_SecMenu[] = "CSDM: Secondary Weapons";
new g_SecMenuID = -1;

public plugin_Init()
{
    g_SecMenuID = menu_create(g_SecMenu, "m_SecHandler", 0);

    menu_setprop(g_SecMenuID, MPROP_EXIT, MEXIT_NEVER);
}

Result:

Код:
//// test.sma
//
// Header size:            272 bytes
// Code size:              160 bytes
// Data size:              172 bytes
// Stack/heap size:      16384 bytes
// Total requirements:   16988 bytes
// Done.
//
// Compilation Time: 1,53 sec
// ----------------------------------------

Press enter to exit ...
 
Последнее редактирование:

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

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