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

plugin_cfg plugin_ini » AmxModX
| |
 RSS
  • OnLine

    : 5
    : 4
    : -
    : crawl Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 3-08-2011, 22:14 : 3779

    plugin_cfg plugin_ini

    plugin_cfg - plugin_init
    . , , ..

    amxmodx.inc
    /* Function is called when all plugin_init from plugins
    * were called, so all commmands and cvars should be already registered. */
    forward plugin_cfg();


    :
    public plugin_cfg ( )

    :
    #include <amxmodx>
    #include <amxmisc>
    #include <sqlx>

    #define PLUGIN "Plugin config"
    #define VERSION "1.0"
    #define AUTHOR "Admin"

    public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)

    }
    public plugin_cfg(){

    new host[33],dbase[33],user[33],pass[33]
    get_cvar_string("SQLx_host",host,30)
    get_cvar_string("SQLx_db",dbase,30)
    get_cvar_string("SQLx_user",user,30)
    get_cvar_string("SQLx_password",pass,30)

    SQL_Tuple = SQL_MakeDbTuple(host,user,pass,dbase) //
    new err, error[256]
    SQL_Connection = SQL_Connect(SQL_Tuple, err, error, charsmax(error)) //

    }
    , .
    .
    plugin_cfg plugin_ini