String too long
#1

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

increase this
Код:
new string[128];
to
Код:
new string[255];
Reply
#3

isnt max string lenght 128? @derick
Reply
#4

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)