Chat limit ?
#1

Hey does some1 have chat FS or something like if i write Saaf says : afasfghiasdrogsdfuigasdfdklfsdgasdgjh
and if the FS is on then i can write unlimited words Saaf says : awrfasiofafuiwfahjfywfio0ьasfgysaegiьygasdgkasdlga shyeouigasdhigilцseghaoisdgaylцsekgaheoitghselguya siьoegejhsioьesetьstjseriojhsertioasejtioawetiwetu iьgirtysdryeriyttioartiatiosdrioptiopsertopjdfjopt gjopastjop

Lol :P





I kno my english is like shiiiii
Reply
#2

Erm? lol? Can you explain more ? try explain using real words for the chat. i might be able to help you
Reply
#3

Quote:
Originally Posted by fie
Посмотреть сообщение
Erm? lol? Can you explain more ? try explain using real words for the chat. i might be able to help you
Read the title + the messagetext slowly.

Quote:
Originally Posted by antsolen
Посмотреть сообщение
Hey does some1 have chat FS or something like if i write

"Saaf says : afasfghiasdrogsdfuigasdfdklfsdgasdgjh"


and if the FS is on then i can write unlimited words


"Saaf says : awrfasiofafuiwfahjfywfio0ьasfgysaegiьygasdgkasdlga shyeouigasdhigilцseghaoisdgaylцsekgaheoitghselguya siьoegejhsioьesetьstjseriojhsertioasejtioawetiwetu iьgirtysdryeriyttioartiatiosdrioptiopsertopjdfjopt gjopastjop"


Lol :P

I kno my english is like shiiiii
What he obviously wants is that players ingame on his server, can write unlimited characters in 1 line.
But I am not familiar with this, so I will leave this for somebody else to slove.

Kind Regards,
Rolyy
Reply
#4

No, there is a limit how much you can write in the chatbox.

https://sampwiki.blast.hk/wiki/Limits
Reply
#5

Yep, Hes right with that reply.

All versions only support: (0.3c, 0.3b, 0.3a, 0.2x (Etc))
Код:
Text I/O	 128 cells/characters (512 bytes)
Quote:

Note the 'text I/O' value - that is for the text that is sent to the client, and that is used on OnPlayerCommandText.

Quote From: https://sampwiki.blast.hk/wiki/Limits
Reply
#6

Did you mean this?
pawn Код:
//On top of your script:
#define MAX_CHARS_PER_LINE 80
#define FINAL_DOTS

//somewhere outside functions:
stock sendLongMessage( playerid , color , message[] )
{
    new len = strlen(message),
        _iL = len / MAX_CHARS_PER_LINE;

    if( ( len % MAX_CHARS_PER_LINE ) ) _iL++;
    new _Line[MAX_CHARS_PER_LINE + 5];

    new _:_i@Index;
    while( _i@Index < _iL )
    {
        if( _i@Index == 0 )
            strmid( _Line, message, ( _i@Index * MAX_CHARS_PER_LINE ), ( _i@Index * MAX_CHARS_PER_LINE ) + MAX_CHARS_PER_LINE );
        else
            strmid( _Line, message, ( _i@Index * MAX_CHARS_PER_LINE ), ( _i@Index * MAX_CHARS_PER_LINE ) + MAX_CHARS_PER_LINE );

        #if defined FINAL_DOTS
        if( _iL > 1 )
        {
            if( _i@Index == 0 )
            {
                format( _Line, sizeof _Line, "%s ...", _Line );
            }
            else if( _i@Index > 0 && ( _i@Index + 1 ) < _iL )
            {
                format( _Line, sizeof _Line, "... %s ...", _Line );
            }
            else
            {
                format( _Line, sizeof _Line, "... %s", _Line );
            }
        }
        #endif
        ////////////
        SendClientMessage( playerid, color, _Line );
        ///////////
        _i@Index++;
    }
    return 1;
}
//Credits to Miki
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)