SA-MP Forums Archive
Strings help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Strings help (/showthread.php?tid=124616)



Strings help - Cry_Wolf - 31.01.2010

Hey all,

I want to know how to know what string I have ti put so can I script good, like:
Код:
new cmd[20];
not
Код:
new cmd[256];
and like this, what is the difference?


Re: Strings help - pagie1111 - 31.01.2010

What is in the '[' and ']' is your Cell amount. In SA:MP/Pawn 1 cell = 1 character. 128 Cells is the size of every chat line in the SA:MP Chat.

128 is the most efficient when you do not know what to put, as most strings wont reach over 128 cells. Though textdraws use over 1000 cells.

So yeh. Thats just a basic information.

Wiki - Strings