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

set_cvar_num ( ) » AmxModX
| |
 RSS
  • OnLine

    : 6
    : 5
    : -
    : crawl Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 16-02-2012, 01:58 : 3519

    set_cvar_num ( )

    , , set_cvar_num, ( )

    amxmodx.inc:
    /* Sets a cvar with integer value. */
    native set_cvar_num(const cvarname[],value);


    :
    set_cvar_num(const cvarname[],value)

    • const cvarname[] -
    • value -


    :
    Native

    :
    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>
    #include <amxmisc>

    #define PLUGIN "[amxmodx.inc] set_cvar_num"
    #define VERSION "1.0"
    #define AUTHOR "Admin"


    public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        
        register_cvar("amx_my_cvar","777")
        
        register_srvcmd("set_my_cvar","f_set_cvars")
        register_srvcmd("get_my_cvar","f_get_cvars")
        
    }
    public f_set_cvars(){
        
        new cvar_num = 555
        
        set_cvar_num("amx_my_cvar",cvar_num)
        
        f_get_cvars()
    }
    public f_get_cvars(){
        
        server_print("[amxmodx]My cvar = %d",get_cvar_num("amx_my_cvar"))
        
    }


    :
    get_cvar_num , :
        new cvar_num = 555
        set_cvar_num("amx_my_cvar",cvar_num)

    , .
    .
    , set_my_cvar
    , .
    .
    set_cvar_num ( )
    FellomoN

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

    set_my_cvar?
    Admin

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

    :
    register_srvcmd("set_my_cvar","f_set_cvars")
    --------------------

    , , .