SendClientMessage string size - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SendClientMessage string size (
/showthread.php?tid=257233)
SendClientMessage string size -
Phanto90 - 24.05.2011
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]; ]
Re: SendClientMessage string size -
Mauzen - 24.05.2011
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.
Re: SendClientMessage string size -
Admigo - 24.05.2011
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
Re: SendClientMessage string size -
Phanto90 - 24.05.2011
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.
Re: SendClientMessage string size -
Admigo - 24.05.2011
Why colors fault? I said COLOR_YOURCOLOR means RED,BLUE.....
Re: SendClientMessage string size -
Vince - 24.05.2011
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.