String too long - 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)
+--- Thread: String too long (
/showthread.php?tid=658741)
String too long -
NoteND - 11.09.2018
Hey!
What to do if string is too long because of colors I've put in. It basically does not say full message ingame if I have it with colors, but without it does. How to fix this while keeping colors..
https://pastebin.com/0fxDwYEM
Re: String too long -
DerickClark - 11.09.2018
increase this
to
Re: String too long -
NoteND - 11.09.2018
isnt max string lenght 128? @derick
Re: String too long -
DerickClark - 11.09.2018
Nope. You can increase it. id, name, reason, admin, datestring, timestring etc. take place of strings so you have to increase some more. on to 155.
Re: String too long -
Calisthenics - 11.09.2018
Client messages are limited to 144 characters. If you exceed this limit, the message will not be sent. You don't have many options to counter this so either use a dialog box or split the client message to more lines (send the reason and date to next line for example).