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

17. get_pcvar_num, get_xvar_num native . » AmxModX
| |
 RSS
  • OnLine

    : 5
    : 4
    : -
    : crawl Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 1-07-2012, 13:27 : 5115

    17. get_pcvar_num, get_xvar_num native .

    , , , "". xvar_exists, , .

    :
    get_pcvar_num, get_xvar_num native ?

    ( ):
    :
    #include <amxmodx> 

    #define VERSION "0.0.1"
    #define PLUGIN "xvar profile 1"

    public xvar1 = 10

    public plugin_init()
    {
        register_plugin(PLUGIN, VERSION, "ConnorMcLeod")
        register_cvar("amx_cvar_test", "1337")
    }

    public plugin_natives()
    {
        register_native("get_variable_test", "get_variable_test")
    }

    public get_variable_test()
    {
        return xvar1
    }

    .

    :
    #include <amxmodx> 

    #define VERSION "0.0.1"
    #define PLUGIN "xvar profile 2"

    native get_variable_test()

    public plugin_init()
    {
        register_plugin(PLUGIN, VERSION, "ConnorMcLeod")
    }

    public plugin_cfg()
    {
        new pcvar = get_cvar_pointer("amx_cvar_test")
        new xvar = get_xvar_id("xvar1")

        for(new i; i<1000; i++)
        {
            get_pcvar_num(pcvar)
            get_xvar_num(xvar)
            get_variable_test()
        }
    }

    3 .

    , :

    date: Fri Sep 24 19:18:23 2010 map: de_aztec
    type | name | calls | time / min / max
    -------------------------------------------------------------------
    n | register_plugin | 1 | 0.000001 / 0.000001 / 0.000001
    n | get_cvar_pointer | 1 | 0.000001 / 0.000001 / 0.000001
    n | get_xvar_id | 1 | 0.000001 / 0.000001 / 0.000001
    n | get_pcvar_num | 1000 | 0.000180 / 0.000000 / 0.000000
    n | get_xvar_num | 1000 | 0.000179 / 0.000000 / 0.000000
    n |get_variable_test | 1000 | 0.000245 / 0.000000 / 0.000001
    p | plugin_cfg | 1 | 0.000561 / 0.000561 / 0.000561
    p | plugin_init | 1 | 0.000001 / 0.000001 / 0.000001
    0 natives, 0 public callbacks, 2 function calls were not executed.


    3 :
    type |             name |      calls | time / min / max
    -------------------------------------------------------------------
       n |    get_pcvar_num |       1000 | 0.000180 / 0.000000 / 0.000000
       n |     get_xvar_num |       1000 | 0.000179 / 0.000000 / 0.000000
       n |get_variable_test |       1000 | 0.000245 / 0.000000 / 0.000001


    time 1000 , , , :
    • get_xvar_num
    • get_pcvar_num
    • get_variable_test
    , .
    , xvar

    :forums.alliedmods.net
    , .
    .
    17. get_pcvar_num, get_xvar_num native .
    Monstr

    29.09.2011
    ICQ: 631967458
    : 12
    : 22
    : -  0  +

    Native pawn , .
    aksktis

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

    , ? ?
    Admin

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

    aksktis, amx_profiler
    --------------------

    , , .