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

6. . . ( for,while,do while) » AmxModX
| |
 RSS
  • OnLine

    : 6
    : 5
    : -
    : crawl Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 10-12-2011, 15:03 : 22322

    6. . . ( for,while,do while)

    .

    , .
    .
    7 .
    PAWN`e , .

    - .

    .

    1. .
    2. - 15 ( ).


    .

    Pawn :
    • For - . ( - )
    • While - .
    • do while - .


    .

    for
    for(_; ; _ ) ՠ // ࠠ}
    : ( ) , . , ( 1=1), , - . :
    for( new i = 1; i <= 10; i++) { 
    server_print("For: %d",i)
    }
    • new i = 1 -
    • i <= 10 - i .
    • i 1 { server_print("For : %d",i) }
    • , i++, i 1, i 2.
    • , i<=10 i , i 11 i <=10 , ( 11 <= 10 ) .
    . 10 :
    For:1
    For:2
    For:..
    For:10


    while.
    while , , .
    while(){
    //
    }

    , :
    new i = 1
    while( i <= 10){
    server_print("For: %d",i)

    i++
    }

    , :
    • new i = 1
    • while( i <= 10) : i ( 1) 10, . ( )
    • {
      server_print("For: %d",i)

      i++
      }

      i .
    • , .
      , , .
    • - continue;:
      while(i<=10){
      i++;
      if( i % 2)
      continue;

      server_print("%d !",i);
      }

      i .
    • - break;
      while(i < 4){
          server_print("[%d]",i);
          i++;
          break;
      }

      break


    .

    do-while.
    , while, , 1 , , .
    :
    do
    {
    //
    }
    while( )


    :
    new i = 1
    do
    {
    server_print("For: %d",i)

    i++
    }
    while( i <= 10 )


    .
    , .
    , .

    :
    , .
    , .
    .
    6. . . ( for,while,do while)
    Maf1a

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



    for(i = 1; i <= get_maxplayers ( ); i++){
    if(is_user_alive(i)){
      new name[32]
      get_user_name(i,name,31)
      server_ptint("%d !",name)
    }
    }
    HoLLyWooD

    26.09.2011
    ICQ: 8272341
    : 3
    : 10
    : -  0  +

    droper,
    . .
    uNkez

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

    : Maf1a

    for(i = 1; i <= get_maxplayers ( ); i++)
    {
    if(is_user_alive(i)){
    new name[32]
    get_user_name(i,name,31)
    server_ptint("%d !",name)
    }
    }

    server_ptint("%d !",name)

    =>

    server_print(0,%d - !, name)

    , )
    DeMNiX

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

    : uNkez
    server_print(0,%d - !, name)


    ===>

    : uNkez
    server_print(0,"%d - !", name)


    )
    Admin

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

    http://www.amxmodx.org/funcwiki.php?search=server_print&go=search
    server_print ( const message[], [ ... ] )

    ....
    --------------------
    lailador

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

    do while - .

    ""

    , , )))
    hummer

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

    for( new i = 1; i <= 10; i++) {
    server_print("For: %d",i)
    }

    , i++, i 1, i 2.

    i 1 ? ++ i
    Admin

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

    .
    i++ -
    i++ = i+1
    --------------------
    adidas

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

    (for,while,do while)
    Admin

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

    , .
    --------------------

    , , .