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

in my script i just put 110 and i don't seem to get any buffering it was just a guess but how can i know how much to put?
Reply
#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
#3

OHHHHHHHHH omg i though i was spose to guess :O
thanks man Rep +
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)