! - . . , , . , , , (, ) . !







Visage Role Play - . /adminka , ! http://visage-rp.ru
VK: vk.com/sergey68

76890 - 1000,46860 - 500, 300
** V.I.P --> **

: auto_new_line -

1 6 6

  1. #1

    auto_new_line -


    :
    auto_new_line

    :
    \n .

    :
    • string -
    • lenght_line - , 70
    • string_size - , sizeof string



    :


    :
    stock auto_new_line(string[], const lenght_line = 70, const string_size = sizeof string)
    {
        new
            point = 0,
            len = strlen(string),
            check = 0;
    
        while(point < len - lenght_line)
        {
            for(new j = point; j < point + lenght_line; ++j)
            {
                if(string[j] == '\n')
                {
                    check = 1;
                    point = j + 1;
                    break;
                }
            }
            if(check == 0)
            {
                for(new j = point + lenght_line; j >= 0; --j)
                {
                    if(string[j] == ' ')
                    {
                        string[j] = '\n';
                        check = 1;
                        point = j;
                        break;
                    }
                }
            }
            if(check == 0)
            {
                strins(string, "\n", point + lenght_line, string_size);
                point = point + lenght_line + 1;
            }
            check = 0;
        }
        return 1;
    }
    []


    :


    :
    public OnPlayerSpawn(playerid)
    {
        new string[450] = "\
            Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod \
            tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, \
            quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \
            Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu \
            fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in \
            culpa qui officia deserunt mollit anim id est laborum.\
        ";
        auto_new_line(string, 70);
        ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Lorem ipsum", string, "Ok", "");
        return 0;
    }
    []



    : knox
    YouTube:
    Vk:
    : knox
  2. 4 c mr.Malcolm :

    #pragma (03.05.2019), Archive (05.04.2019), @K (29.03.2019), Pa[DoN]oK (25.04.2019)

  3. #2
  4. #3
  5. #4

      DmX

    :
    :23.07.2011
    :.
    :1,068
    :308 [+/-] 
    PHP :
    while(point len lenght_line)
        {
            for(new 
    pointpoint lenght_line; ++j
    . . , , . 2009 .
  6. #5

      Dannyseite

    :
    :03.01.2019
    :Kuwait
    :1
    :0 [+/-] 



    ,
    ,
    .

    15 .

    ,
    .
    ,
    ,
    .


    .
    .
    .
    ,
    .

    ( , , ,
    ) ROUTE SERVICE().
    !
  7. #6

, : 108

(, , , , , ), , .
!
samp-rp advanvce pawn s0beit cs 1.6 0.3x World of Tanks samp-rp, samp-rp, - PAWNO SA-MP IV-MP MTA cleo s0beit sobeit sa-mp sa-mp pawno pawno pawno iv-mp iv-mp iv-mp godfather SAMP gta 4 4 GTA 4 GTA 4 GTA 4 SAMP SAMP Pen1 LS Pen1 Fugitive The Godfather rp roleplay samp-rp sa-mp sa-mp pawno gta-iv gta-v gta-sa gta-3 gta-III gta-4 gta-5 gta-vc mta mta-dm mta-race mta-sa pawno info ru pawno pawno gta-iv gta-iv gta-v gta-v gta-iv keygen gta sa gta 4 multiplayer gta san adnreas multiplayer sa-mp forum sa-mp pawno sa-mp pawno sa-mp gta-sa pawno pawno errors sa-mp 0.3c SA-MP 0.3d 4 GTA 4 GTA 4 GTA 4 SAMP SAMP Pen1 LS Pen1 Fugitive The Godfather SAMP hack rat android instagram twitter ddos root linux ubuntu mac android advance arizona 4g