[Question] String lenght
#1

Hey everyone, I got this little question which is important, I think. So, let me explain you.

When you are formatting the string, do you need to add color code lenght to the string lenght?
Example:

Код:
{FF6666}has been banned for
With the embed color lenght is 27, without its 19. SA-MP has chat string lenght limit which is 128, so using embed colors in the string makes it really hard to fit in 128 cells.

Thanks for your reply,
Universal.
Reply
#2

Yes, you need to account for these colors too. IMO, they're over used already.
Reply
#3

Oh, dang! What you mean?
Reply
#4

use this page: www.string.ql.lt <<< this is string counter where was writed "Simboliai:" thats mean how much is string. i always use this page
Reply
#5

Quote:
Originally Posted by speed258
Посмотреть сообщение
use this page: www.string.ql.lt <<< this is string counter where was writed "Simboliai:" thats mean how much is string. i always use this page
This is wrong.
Write
pawn Код:
test
it said 5 Chars. it 's 4 xD
Use Cut & Paste Character count
Reply
#6

they always add +1 to be garanted
Reply
#7

It's not wrong, because it takes the NULL character (string terminator) into account.
Reply
#8

Yes, I know that it counts +1 for the string terminator, but this is only for Programming Languages.
When we want to count normally..

Between, I always count normally and then add +1.
Reply
#9

Alright guys, thanks for help. I see I now must work my ass as hard as I can to fit the sentences into the chat string...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)