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

get_time / » AmxModX
| |
 RSS
  • OnLine

    : 6
    : 5
    : -
    : crawl Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 8-12-2011, 13:31 : 9043

    get_time /

    , , , Counter-Strike , get_time, , . , , , .

    amxmodx.inc:
    /* Returns time in given format. The most popular is: "%m/%d/%Y - %H:%M:%S". */
    native get_time(const format[],output[],len);


    :
    get_time ( const format[],output[],len )

    • const format[] - .
      • %a (Sun)
      • %A ()
      • %b (Dec)
      • %B (December)
      • %c (2 December 6:55:15 1979)
      • %d ( ) (02)
      • %H 24- (06)
      • %I 12- (06)
      • %j , 001 (365)
      • %m , 01 (12)
      • %M (55)
      • %p AM/PM
      • %S (15)
      • %U ( )( ) (48)
      • %w ( - 2)
      • %W ( )( ) (47)
      • %x (2 Dec 1979)
      • %X (6:55:15)
      • %y , 00 (79)
      • %Y (1979)
    • output[] -
    • len -


    :
    Native

    :
    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>

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

    public plugin_init() {
        
        register_plugin(PLUGIN, VERSION, AUTHOR)
        
        register_concmd("real_time","f_real_time")
    }
    public f_real_time(id){
        
        new CurrentTime[32]
        get_time("%H:%M:%S",CurrentTime,31)
        server_print("The current time is: %s",CurrentTime)
        //The current time is: 13:28:52

        get_time("%m/%d/%Y - %H:%M:%S",CurrentTime,31)
        server_print("The current time is: %s",CurrentTime)
        //The current time is: 11/29/2011 - 13:28:52
        
        get_time("%X",CurrentTime,31)
        server_print("The current time is: %s",CurrentTime)
        //The current time is: 13:28:52
        
        get_time("%x",CurrentTime,31)
        server_print("The current date is: %s",CurrentTime)
        //The current date is: 11/29/11
    }


    :
    , .
    , .

    (, , , ), , 1 .
    , .
    , - .

    , .
    , .
    .
    get_time /
    lenarsaitov

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

    !smile
    merlinwarwar

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

    .
    , .
    - .
    .

    : 17 !.
    Admin

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

    --------------------
    merlinwarwar

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

    ?
    Admin

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

    , .
    , .
    --------------------
    maine

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

    ? . ?
    Admin

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

    ?
    : 21 03 , ?

    %H  24-  (06)

    .
    --------------------
    maine

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

    , , .
    Admin

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

    :
    if( (21 <= num <= 24) || ( 00 <= num <= 3 ) ){


    }
    --------------------
    demondzr

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

    if( (num >=21 ) ||(num <= 3 ) ){

    }

    =)

    , , .