Run time error array index out of bounds[+rep]
#2

I dont believe this will do any harm whatsoever.
This happens when you try to allocate data in a array from a variable bigger than the array is limited to.

Example:
#define MAX_SOMETHING 5
new test[5];

Not correct:
Код:
	for(new h=0; h<=MAX_SOMETHING; h++)
	{
		test[h]=1;
	}
Correct:
Код:
	for(new h=0; h<MAX_SOMETHING; h++)
	{
		test[h]=1;
	}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)