SendClientMessage string size
#1

How many charactar SendClientMessage can send?
My firends say 128 but i remember some days ago i could not complete a message with a formatted string of 128 cells and by increasing cells it sendclientmessage as nothing if. I'm wrong


[Need just to define correctly a variable as new string[#cells]; ]
Reply
#2

https://sampwiki.blast.hk/wiki/Limits

128 is the correct maximum. Maybe you had color code or something in it, so it didnt display all 128 characters.
Reply
#3

If you dont see the text or you get an error that the line is to long make this:
Код:
new Total[700],str1[256],str2[256];
Код:
format(Total,sizeof(Total),%s %s",str1,str2);
SendClientMessage(playerid,COLOR_YOURCOLOR,Total);
Good luck
Reply
#4

Color's fault i suppose

Quote:
Originally Posted by admigo
Посмотреть сообщение
If you dont see the text or you get an error that the line is to long make this:
Код:
new Total[700],str1[256],str2[256];
Код:
format(Total,sizeof(Total),%s %s",str1,str2);
SendClientMessage(playerid,COLOR_YOURCOLOR,Total);
Good luck
This was not the respose to the question LoL... and if the line is too long you can press enter continue the string.
Reply
#5

Why colors fault? I said COLOR_YOURCOLOR means RED,BLUE.....
Reply
#6

That just doesn't work. The chat is fixed at a limit of 128 characters. Even if you make huge strings, only 128 characters will be displayed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)