SA-MP Forums Archive
initialization data exceeds declared size - 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)
+--- Thread: initialization data exceeds declared size (/showthread.php?tid=455342)



initialization data exceeds declared size - deimantas1 - 01.08.2013

Код:
new NewText[1][3] =
{
	{"Bussines","1000 credit","100 credit"}
};
Код:
initialization data exceeds declared size
What's wrong?


AW: initialization data exceeds declared size - CutX - 01.08.2013

//nevermind... i messd up something


Re: initialization data exceeds declared size - Konstantinos - 01.08.2013

pawn Код:
new NewText[1][3][24/*MAX LENGHT of the string*/]
Quote:
Originally Posted by CutX
Посмотреть сообщение
Код:
new NewText[12][3] =
{
	{"Bussines","1000 credit","100 credit"}
};
new NewText[1][3]

1 is too small
He uses only 1.. why is that small? The first array is row, the second is the column and the third the max lenght for the string is used.


Re: initialization data exceeds declared size - deimantas1 - 01.08.2013

Quote:
Originally Posted by _Zeus
Посмотреть сообщение
pawn Код:
new NewText[1][3][24/*MAX LENGHT of the string*/]


He uses only 1.. why is that small? The first array is row, the second is the column and the third the max lenght for the string is used.
I later use more.

P.S: Thanks, working.