error 032: array index out of bounds (variable "GangInfo") .pwn(5413) : error 032: array index out of bounds (variable "GangInfo") .pwn(5414) : error 032: array index out of bounds (variable "GangInfo") .pwn(5415) : error 032: array index out of bounds (variable "GangInfo") .pwn(5416) : error 032: array index out of bounds (variable "GangInfo") .pwn(5428) : error 032: array index out of bounds (variable "ZoneInfo") .pwn(5429) : error 032: array index out of bounds (variable "ZoneInfo") .pwn(5430) : error 032: array index out of bounds (variable "ZoneInfo") .pwn(5431) : error 032: array index out of bounds (variable "ZoneInfo") .pwn(5432) : error 032: array index out of bounds (variable "ZoneInfo") .pwn(7303) : error 032: array index out of bounds (variable "GangInfo") .pwn(7304) : error 032: array index out of bounds (variable "GangInfo") .pwn(7305) : error 032: array index out of bounds (variable "GangInfo") .pwn(7306) : error 032: array index out of bounds (variable "GangInfo") .pwn(7307) : error 032: array index out of bounds (variable "GangInfo")
Originally Posted by AlbanianGuy
Код:
error 032: array index out of bounds (variable "GangInfo") .pwn(5413) : error 032: array index out of bounds (variable "GangInfo") .pwn(5414) : error 032: array index out of bounds (variable "GangInfo") .pwn(5415) : error 032: array index out of bounds (variable "GangInfo") .pwn(5416) : error 032: array index out of bounds (variable "GangInfo") .pwn(5428) : error 032: array index out of bounds (variable "ZoneInfo") .pwn(5429) : error 032: array index out of bounds (variable "ZoneInfo") .pwn(5430) : error 032: array index out of bounds (variable "ZoneInfo") .pwn(5431) : error 032: array index out of bounds (variable "ZoneInfo") .pwn(5432) : error 032: array index out of bounds (variable "ZoneInfo") .pwn(7303) : error 032: array index out of bounds (variable "GangInfo") .pwn(7304) : error 032: array index out of bounds (variable "GangInfo") .pwn(7305) : error 032: array index out of bounds (variable "GangInfo") .pwn(7306) : error 032: array index out of bounds (variable "GangInfo") .pwn(7307) : error 032: array index out of bounds (variable "GangInfo") Can any one help me with this ? |
new GangInfo[MAX_GANGS][ginfo]; new ZoneInfo[MAX_ZONES+1][zinfo]; new GangZone_CurrentColour[MAX_ZONES];
new GangInfo[MAX_PLAYERS][ginfo]; new ZoneInfo[MAX_PLAYERS+1][zinfo]; new GangZone_CurrentColour[MAX_PLAYERS]; |
strmid(GangInfo[ TEAM_NORTH ][GangName], "NORTH", 0, strlen("NORTH"), MAX_PLAYER_NAME); strmid(GangInfo[ TEAM_SOUTH][GangName], "SOUTH", 0, strlen("SOUTH"), MAX_PLAYER_NAME); strmid(GangInfo[ TEAM_WEST ][GangName], "WEST", 0, strlen("WEST"), MAX_PLAYER_NAME);
new GangInfo[MAX_GANGS][ginfo];
new ZoneInfo[MAX_ZONES+1][zinfo];
new GangZone_CurrentColour[MAX_ZONES];
// leave it like that, no more changes there.
// MAX_GANGS should be something like:
#define MAX_GANGS value // change values for the max gangs that could be in your server.
// MAX_ZONES must be like:
#define MAX_ZONES value // change values for the max zones that could be in your server.
// remeber that value could be any number and if you want those errors fixed, you will have to find that VALUE
#define MAX_GANGS 15 #define MAX_ZONES 14
.pwn(5121) : error 052: multi-dimensional arrays must be fully initialized
new Float:ZoneLocations[MAX_ZONES][4] = { {2193.39, -1926.622, 2590.068, -1448.945}, {2010.854, -1448.945, 2590.068, -1058.119}, {1807.184, -1926.622, 2193.39, -1448.945}, {1075.356, -1885.622, 1424.182, -1390.99}, {2590.068, -1673.966, 2927.337, -1058.119}, {1424.182, -1885.622, 1807.184, -1448.945}, {2079.305, -2312.000, 2547.053, -1926.622}, {1424.182,-1448.945,1862.935,-1044.718}, {765.8739, -1885.622, 1075.356, -1390.99}, {2374.551,-2677.546,2847.865,-2312.000}, {2547.053, -2312.000, 2927.337, -1926.622}, {1862.935,-1448.945,2010.854,-1044.718}, {765.8739, -1390.99, 1075.356, -1044.718}, {1075.356, -1390.99, 1424.182, -1044.718} };
};
Originally Posted by DaRulz
b) Do not bump
Some people apparently think they are important enough to bump their own topic after 10 minutes. You can bump topics when the last reply is at least 12 hours old. (this means you cannot post twice yourself, use the "modify" buttom) |
new Float:ZoneLocations[][] = {
{2193.39, -1926.622, 2590.068, -1448.945},
{2010.854, -1448.945, 2590.068, -1058.119},
{1807.184, -1926.622, 2193.39, -1448.945},
{1075.356, -1885.622, 1424.182, -1390.99},
{2590.068, -1673.966, 2927.337, -1058.119},
{1424.182, -1885.622, 1807.184, -1448.945},
{2079.305, -2312.000, 2547.053, -1926.622},
{1424.182,-1448.945,1862.935,-1044.718},
{765.8739, -1885.622, 1075.356, -1390.99},
{2374.551,-2677.546,2847.865,-2312.000},
{2547.053, -2312.000, 2927.337, -1926.622},
{1862.935,-1448.945,2010.854,-1044.718},
{765.8739, -1390.99, 1075.356, -1044.718},
{1075.356, -1390.99, 1424.182, -1044.718}
};
#define MAX_ZONES 100 // change 100 to 14, because there are just 14 zones