SendClientMessage string length bug?
#1

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?
Reply
#2

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
Reply
#3

Hmmm okay, anyone else?
Reply
#4

True but not sure about the length you mentioned. You could split them up though.
Reply
#5

not a bug - it's well documented.
Reply
#6

The max length that can be shown on one line of a client message is 128, anything after that gets cut off.
Reply
#7

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.
Reply
#8

Bump. Anyone else with the same problem?
Reply
#9

I know the line limit is 128 characters. Okay, here's what actually happens:
pawn Код:
SendClientMessage(playerid,Grey,"A man of unsound mind fell from the top of a billboard in Blackfield Intersection and suffering from a concussion and a few broken limbs. Take him to the");//doesn't print
SendClientMessage(playerid,Grey,"A man of unsound mind fell from the top of a billboard in Blackfield Intersection and suffering from a concussion and a few broken limbs. Take him to");//doesn't print
SendClientMessage(playerid,Grey,"A man of unsound mind fell from the top of a billboard in Blackfield Intersection and suffering from a concussion and a few broken limbs. Take him");//doesn't print
SendClientMessage(playerid,Grey,"A man of unsound mind fell from the top of a billboard in Blackfield Intersection and suffering from a concussion and a few broken limbs. Take");//prints
SendClientMessage(playerid,Grey,"A man of unsound mind fell from the top of a billboard in Blackfield Intersection and suffering from a concussion and a few broken limbs.");//prints
SendClientMessage(playerid,Grey,"A man of unsound mind fell from the top of a billboard in Blackfield Intersection and suffering from a concussion and a few broken");//prints
SendClientMessage(playerid,Grey,"A man of unsound mind fell from the top of a billboard in Blackfield Intersection and suffering from a concussion and a few");//prints
SendClientMessage(playerid,Grey,"A man of unsound mind fell from the top of a billboard in Blackfield Intersection and suffering from a concussion and a");//prints
What could possibly be the problem?
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)