initialization data exceeds declared size
#1

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

//nevermind... i messd up something
Reply
#3

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)