SA-MP Forums Archive
How to know how much # to put for string? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: General (https://sampforum.blast.hk/forumdisplay.php?fid=13)
+--- Thread: How to know how much # to put for string? (/showthread.php?tid=438581)



How to know how much # to put for string? - Geeboi_Mehdi - 20.05.2013

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?


Re: How to know how much # to put for string? - 2KY - 21.05.2013

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.


Re: How to know how much # to put for string? - Geeboi_Mehdi - 21.05.2013

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