String Limit
#1

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
Reply
#2

The string limit is a PAWN or Pawno issue, it has nothing to do with SA:MP.
Reply
#3

Ok, but that doesn't really answer my question.

Is there a concrete number, or is the limit determined in some other way?
Reply
#4

wtf!

theres a wannabe of me :*(
Reply
#5

256, but I suggest you use 256-, or use only in places where you actualy need 256 symbols
Reply
#6

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
Reply
#7

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?
Reply
#8

Textdraw string limit is 1024, but in anywhere else 256.
Reply
#9

Why would you ever need more than 2048 cells (dialogs can display that much I think)? And limit is basically your free heap space.
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)