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

read_argv » AmxModX
| |
 RSS
  • OnLine

    : 7
    : 6
    : -
    : crawl Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 13-09-2011, 17:46 : 5648

    read_argv

    2 , , read_argv

    amxmodx.inc:
    /* Gets argument from command. */
    native read_argv(id,output[],len);


    :
    read_argv ( id, output[], len )

    • id - , , .. 1
    • output[] -
    • len -


    :
    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>
    #include <amxmisc>

    #define PLUGIN "Read argv"
    #define VERSION "1.0"
    #define AUTHOR "Admin"

    public plugin_init() {
        
        register_plugin(PLUGIN, VERSION, AUTHOR)
        
        register_clcmd("my_cmd","my_cmd")
    }
    public my_cmd(id){
        
        new arg1[3],arg2[3],arg3[3]
        read_argv(1,arg1,2)
        read_argv(2,arg2,2)
        read_argv(3,arg3,2)
        
        client_print(id,print_console,"Arg1:%s Arg2:%s Arg3:%s",arg1,arg2,arg3)
        
        return PLUGIN_HANDLED
    }


    :
    Arg1,Arg2 Arg3.
    my_cmd 12 rr er
    :Arg1:12 Arg2:rr Arg3:er

    , .
    arg1[3] - 3 ,
    read_argv(1,arg1,2), , 2, .. 2 , . , !

    , , , , , str_to_num, .
    , .
    .
    read_argv
    Doombringer

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

    , , , , ? , "" .
    Admin

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

    Doombringer,
    my_cmd 12 rr er
    --------------------

    , , .