How to know how much # to put for string?
#2

128 cells is the maximum for any chat string, but the number of characters in a word is the number of cells +1 (for NULL)

Say you have the word 'hello' it is 5 letters long, so the string would be like:

pawn Код:
new hello[6];
Because NULL (\0) [i think..] is 1 character long.
Reply


Messages In This Thread
How to know how much # to put for string? - by Geeboi_Mehdi - 20.05.2013, 23:43
Re: How to know how much # to put for string? - by 2KY - 21.05.2013, 00:39
Re: How to know how much # to put for string? - by Geeboi_Mehdi - 21.05.2013, 00:54

Forum Jump:


Users browsing this thread: 1 Guest(s)