SAPE ERROR: Не могу подключиться к серверу: dispenser-01.saperu.net/code.php?user=836f97673aa6aa25a35b5029263ee232&host=amxxmodx.ru&charset=windows-1251&format=serialize, type: file_get_contents

SAPE ERROR: Не могу подключиться к серверу: dispenser-02.saperu.net/code.php?user=836f97673aa6aa25a35b5029263ee232&host=amxxmodx.ru&charset=windows-1251&format=serialize, type: file_get_contents

menu_additem » AmxModX
| |
 RSS
  • OnLine

    : 7
    : 3
    : -
    : crawl Bot, Google Bot, Yandex Bot, Google Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 17-12-2011, 00:28 : 8782
    , .
    .
    (callback)
    . .

    newmenu.inc:
    /**
    * Adds an menu to a menu.
    *
    * @param menu            Menu resource identifier.
    * @param name            Item text to display.
    * @param info            Item info string for internal information.
    * @param paccess            Access required by the player viewing the menu.
    * @param callback        If set to a valid ID from menu_makecallback(), the
    *                        callback will be invoked before drawing the item.
    * @noreturn
    * @error                Invalid menu resource.
    */
    native menu_additem(menu, const name[], const info[]="", paccess=0, callback=-1);


    :
    menu_additem ( menu, const name[], const info[]="", paccess=0, callback=-1 )

    • menu - ( )
    • const name[] - ( )
    • const info[]="" -
    • paccess=0 -
    • callback=-1 - callback, -1 .


    :
    Native

    :
    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>
    #include <amxmisc>

    #define PLUGIN "[newmenu.inc] menu_additem"
    #define VERSION "1.0"
    #define AUTHOR "Admin"

    new mTEST // Menu
    new mcbTEST // Menu Callback

    public plugin_init() {

        register_plugin(PLUGIN, VERSION, AUTHOR)

        mTEST = menu_create("TEST", "mh_TEST")

        mcbTEST = menu_makecallback("mcb_TEST")

        menu_additem(mTEST, "123 test", "ma_TEST", ADMIN_ALL, mcbTEST)


    :
    , callback .
    , .
    , .
    .
    menu_additem
    maine

    --
    ICQ: --
    : 0
    : 0
    : -  0  +

    8 9 ?
    , .
    KEFIR

    --
    ICQ: --
    : 0
    : 0
    : -  0  +

    - ? ? ? ADMIN_ALL
    Arctic

    --
    ICQ: --
    : 0
    : 0
    : -  0  +

    : KEFIR
    ADMIN_ALL

    .

    , . const name[] = 64
    Chedroni

    --
    ICQ: --
    : 0
    : 0
    : -  0  +

    , (ma_TEST)
    Chedroni

    --
    ICQ: --
    : 0
    : 0
    : -  0  +

    (123 test)
    Nesquik

    --
    ICQ: --
    : 0
    : 0
    : -  0  +

    Chedroni,
    ma_TEST =   

    Chedroni,
     123 test    ma_TEST

    SwimUp

    --
    ICQ: --
    : 0
    : 0
    : -  0  +

    menu_setprop(idmenu,MPROP_PERPAGE,0)
    gavrilyuc

    --
    ICQ: --
    : 0
    : 0
    : -  0  +

    ma_TEST :
    \r[\yHelloWorld\r]
    - (*
    Admin

    30.07.2011
    ICQ: 980500
    : 507
    : 333
    : -  58  +

    gavrilyuc, :
    --------------------

    , , .