What is the maximum length for string Variable?
#1

What is the maximum length for string Variable?
Reply
#2

Really, really big. The maximum 32 bits number I think. But it isn't recommended to be big.
Reply
#3

IstuntmanI is right, but it also depends on what you set it for, how you are using it, and what you are using it for...

EX:
new string[168] has a maximum length of 168.

new string [1000] has a maximum length of 1000.
Reply
#4

Also, if you're using a SendClientMessage, the limit is 144
Reply
#5

Much longer than you'll ever need. The longest string you'll ever need is for a dialog or mySQL query. The max length of a dialog's main text is 2048, though Kye said he would consider increasing this, perhaps to 4096.
Reply
#6

Quote:
Originally Posted by jakejohnsonusa
Посмотреть сообщение
IstuntmanI is right, but it also depends on what you set it for, how you are using it, and what you are using it for...

EX:
new string[168] has a maximum length of 168.

new string [1000] has a maximum length of 1000.
No, 168 gives you 167 because you need to leave one cell for the null terminator. So, with 1000, you really have 999.

Quote:
Originally Posted by MattyG
Посмотреть сообщение
Also, if you're using a SendClientMessage, the limit is 144
No, it's 128.
Reply
#7

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
No, 168 gives you 167 because you need to leave one cell for the null terminator. So, with 1000, you really have 999.



No, it's 128.
No, max length for SCM is 144.
Reply
#8

Quote:
Originally Posted by IstuntmanI
Посмотреть сообщение
Really, really big. The maximum 32 bits number I think. But it isn't recommended to be big.
What is the maximum for format? I want use huge string for mysql query.
Reply
#9

Quote:
Originally Posted by yxliang
Посмотреть сообщение
What is the maximum for format? I want use huge string for mysql query.
Just use your huge query, I'm positive you wont be able to write a query large enough to break the string size limit.
Reply
#10

Quote:
Originally Posted by iggy1
Посмотреть сообщение
Just use your huge query, I'm positive you wont be able to write a query large enough to break the string size limit.
But my GM has Run Time error 3 when it run the line"new string[number];".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)