What is the maximum length for string Variable? -
yxliang - 05.05.2013
What is the maximum length for string Variable?
Re: What is the maximum length for string Variable? -
IstuntmanI - 05.05.2013
Really, really big. The maximum 32 bits number I think. But it isn't recommended to be big.
Re: What is the maximum length for string Variable? -
jakejohnsonusa - 05.05.2013
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.
Re: What is the maximum length for string Variable? -
MattyG - 05.05.2013
Also, if you're using a SendClientMessage, the limit is 144
Re: What is the maximum length for string Variable? -
MP2 - 05.05.2013
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.
Re: What is the maximum length for string Variable? -
Scenario - 05.05.2013
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.
Re: What is the maximum length for string Variable? -
ououdu94 - 05.05.2013
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.
Re: What is the maximum length for string Variable? -
yxliang - 06.05.2013
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.
Re: What is the maximum length for string Variable? -
iggy1 - 06.05.2013
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.
Re: What is the maximum length for string Variable? -
yxliang - 06.05.2013
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];".