23.04.2016, 11:56
Quote:
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.
|
Код:
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} };