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

min » AmxModX
| |
 RSS
  • OnLine

    : 7
    : 6
    : -
    : crawl Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 27-09-2011, 11:34 : 2771
    ? 2 :
    1. A = 5
    2. B = 10

    ?
    :
    if(A > B){
    // A B
    }esle{
    // B A
    }
    , , !
    min, " ".

    core.inc:
    native min(value1, value2);


    :
    min ( val1, val2 )

    • val1 -
    • val2 -


    :
    Native

    :
    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>
    #include <amxmisc>

    #define PLUGIN "[core.inc] min"
    #define VERSION "1.0"
    #define AUTHOR "Admin"

    public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        register_srvcmd("f_min","get_min")
        
    }
    public get_min(){

        new val1 = 5
        new val2 = 10
        
        new Minimum_value = min(val1,val2)
        
        server_print("Minimum value: %d", Minimum_value)
        server_print("Minimum value: %d", min(val1,val2))
    }


    :
    , , .

    f_min , :
    f_min
    Minimum value: 5
    Minimum value: 5


    ?
    , 2 val1 val2 5 10.
    Minimum_value, min.

    :


    , .
    , .
    , .
    .
    min