Posts: 836
Threads: 107
Joined: Sep 2010
Reputation:
0
There's a problem where the max length of strings passed by SendClientMessage, for me is 142. Anything above that won't be shown in the server, I printed out the actual message which is 153 characters in length. Anyone has/had this experience?
Posts: 883
Threads: 131
Joined: Mar 2011
Reputation:
0
Yeah actually. It used to happen when i did a pm command it would cut off the middle of the message but the string length was longer
Posts: 854
Threads: 5
Joined: Jan 2012
Reputation:
0
True but not sure about the length you mentioned. You could split them up though.
Posts: 412
Threads: 20
Joined: Mar 2009
Reputation:
0
not a bug - it's well documented.
Posts: 1,905
Threads: 63
Joined: Oct 2011
Reputation:
0
The max length that can be shown on one line of a client message is 128, anything after that gets cut off.
Posts: 836
Threads: 107
Joined: Sep 2010
Reputation:
0
Yea I know that but the message doesn't show at all. Okay, here's what happens. I have a message that's 143 characters long, it doesn't show the first 142, it doesn't show anything at all, I remove one character (leaving 142) now the message shows.
Posts: 836
Threads: 107
Joined: Sep 2010
Reputation:
0
Bump. Anyone else with the same problem?
Posts: 2,421
Threads: 52
Joined: Mar 2009
Reputation:
0
I wonder if the same happens with SendPlayerMessage they might have different max lengths, due to not having to send a player name. (At the risk of sounding a bit stupid OFC) Can't test it myself right now.