Larger chat
#1

does anybody know how do a larger chat? (script)

Like this:
James Lucas says:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaa-
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Reply
#2

Quote:
Originally Posted by Sniper99
Посмотреть сообщение
does anybody know how do a larger chat? (script)

Like this:
James Lucas says:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaa-
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
I don't think its possible, the max chat size i think is 256 characters.
Reply
#3

Quote:
Originally Posted by jueix
Посмотреть сообщение
I don't think its possible, the max chat size i think is 256 characters.
It's actually 128, and I've seen it done, I assume they just split the huge string into parts and send them that way.
Reply
#4

You could script it with SendPlayerClientMessageToAll + colour embedding.
Reply
#5

Quote:
Originally Posted by 2KY
Посмотреть сообщение
It's actually 128, and I've seen it done, I assume they just split the huge string into parts and send them that way.
Chat"size" is 144 characters
Reply
#6

how is it related with 0.3x scripting?
Reply
#7

Quote:
Originally Posted by niCe
Посмотреть сообщение
You could script it with SendPlayerClientMessageToAll + colour embedding.
User can still input 128 characters. Unless they input twice, there's no way to do that, but what's the point of making a long chat than splitting the sentence into 2 parts then?
Reply
#8

Quote:
Originally Posted by NetKiel
Посмотреть сообщение
Chat"size" is 144 characters
User input is only 128, but chat size is indeed 144. This is just 24 (max length of user name) + 2 (": ", the colon and the space) + 128 (text input) = 144.
Reply
#9

MAX_PLAYER_NAME is 24, but the max allowed name is 20 as far as I know.

Quote:
Originally Posted by Basssiiie
Посмотреть сообщение
User input is only 128, but chat size is indeed 144. This is just 24 (max length of user name) + 2 (": ", the colon and the space) + 128 (text input) = 144.
24 + 2 + 128 = 154
Reply
#10

Max chat input is 128. Max SendClientMessage is 144.

I joined with a 20-character name and inputted 127 'W' characters (widest character) and then put a . at the end, and the . showed. That's at least 150. 154 if you had a 24-char name.

But, we digress. Nobody has answered his actual question.

Quote:
Originally Posted by Sniper99
Посмотреть сообщение
does anybody know how do a larger chat? (script)

Like this:
James Lucas says:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaa-
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
As I previously said, a clientmessage can be 144 characters. In the default SA-MP player messages, the 73rd character is put on a new line (irrespective of name length).

There are various methods for doing this. strmid etc.
Reply
#11

You guys aren't including some of the typical color changing texts that some scripts have called for, which often times reduces the maximum of the sent text.

Also the term OP's looking for is 'text wrapping'

pawn Code:
stock sendWrappedText(playerid,color,text[],len=sizeof text,cutoff=128)
{
    new cell;
    new tmpS[154];
    while(cell<len)
    {
        strmid(tmpS,text,cell,cell+cutoff);
        SendClientMessage(playerid,color,tmpS);
        cell+=cutoff;
    }
}
Not Tested
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)