error 052: multi-dimensional arrays must be fully initialized
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
You say the array has to have 6 elements and you put only 5. Hence, error. What you should do is remove the MAX_ZONES define and let the compiler set the size. In loops, use sizeof.
Ready code:

Код:
enum dZones
{
	Name[128],
	Float:MinX,
	Float:MinY,
	Float:MaxX,
	Float:MaxY,
	Float:Z,
	Team,
	ID
}
new Zones[][dZones] =
{
	{"Soviet Union Base", 1.0, 1.0, 1.0, 1.0, 20.0, -1, 0},
	{"Germany Base", 1.0, 1.0, 1.0, 1.0, 20.0, -1, 0},
	{"United States Base", 1.0, 1.0, 1.0, 1.0, 20.0, -1, 0},
	{"Great Britain Base", 1.0, 1.0, 1.0, 1.0, 20.0, -1, 0},
	{"Test Gangzone", 19.532827, 2013.186401, 67.532829, 2061.186523, 234, -1, 0}
};
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)