05.03.2015, 13:23
Can someone help me out with this please?
pawn Код:
D:\GTA SA\new rp\samp03z_svr_R1_win32\gamemodes\New.pwn(13298) : error 032: array index out of bounds (variable "gSAZones")
D:\GTA SA\new rp\samp03z_svr_R1_win32\gamemodes\New.pwn(13302) : error 032: array index out of bounds (variable "gSAZones")
pawn Код:
stock GetPlayer3DZone(playerid)
{
new zone[32] = "San Andreas";
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
for(new i = 0; i < sizeof(gSAZones); i++)
{
13298--> if(x >= gSAZones[i][SAZONE_MAIN][0] && x <= gSAZones[i][SAZONE_MAIN][3]
&& y >= gSAZones[i][SAZONE_MAIN][1] && y <= gSAZones[i][SAZONE_MAIN][4]
&& z >= gSAZones[i][SAZONE_MAIN][2] && z <= gSAZones[i][SAZONE_MAIN][5])
{
13302--> strmid(zone, gSAZones[i][SAZONE_MAIN], 0, 28);
return zone;
}
}
return zone;
}