String Limit - 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: String Limit (
/showthread.php?tid=176191)
String Limit -
Thomas. - 12.09.2010
Hi all,
What is the maximum cell size for a regular string?
I've looked on the
Limits wiki page, but the only string length limit I can find is related to TextDraws.
I got the idea that the limit is 1024, but I'm not sure about it since the limit for serverwise created TextDraws is already 2048...
Thomas
Re: String Limit -
Relixious - 12.09.2010
The string limit is a PAWN or Pawno issue, it has nothing to do with SA:MP.
Re: String Limit -
Thomas. - 12.09.2010
Ok, but that doesn't really answer my question.
Is there a concrete number, or is the limit determined in some other way?
Re: String Limit -
thomas.. - 12.09.2010
wtf!
theres a wannabe of me :*(
Re: String Limit -
Voldemort - 12.09.2010
256, but I suggest you use 256-, or use only in places where you actualy need 256 symbols
Re: String Limit -
Thomas. - 12.09.2010
Quote:
Originally Posted by thomas..
wtf!
theres a wannabe of me :*(
|
Me: Join Date: Aug 2010
You: Join Date: Sep 2010
Anyway, let's not get offtopic
Re: String Limit -
Thomas. - 12.09.2010
Quote:
Originally Posted by Voldemort
256, but I suggest you use 256-, or use only in places where you actualy need 256 symbols
|
Thank you.
However, that leads me to another question.
In the Limits wiki page, limits of 1024+ are stated?
Re: String Limit -
Voldemort - 12.09.2010
Textdraw string limit is 1024, but in anywhere else 256.
Re: String Limit -
Sergei - 12.09.2010
Why would you ever need more than 2048 cells (dialogs can display that much I think)? And limit is basically your free heap space.
Re: String Limit -
Vince - 13.09.2010
Quote:
Originally Posted by Voldemort
Textdraw string limit is 1024, but in anywhere else 256.
|
You should only really use large strings sizes (128 and up) when working with MySQL or files (and in some cases textdraws and dialogs). Anywhere else, a string size of 128 is more than enough.
Edit: Didn't notice the multiple pages in this thread. Disregard this post if you'd want.