23.04.2012, 05:02
pawn Код:
stock GetPlayer3DZone(playerid, zone[], len)
{
new Float:x33, Float:y33, Float:z33;
GetPlayerPos(playerid, x33, y33, z33);
for(new i = 0; i != sizeof(gSAZones); i++ )
{
if(x33 >= gSAZones[i][SANZONE_AREA][0] && x33 <= gSAZones[i][SANZONE_AREA][3] && y33 >= gSANZones[i][SAZONE_AREA][1] && y33 <= gSANZones[i][SAZONE_AREA][4] && z33 >= gSAZones[i][SANZONE_AREA][2] && z33 <= gSANZones[i][SAZONE_AREA][5]) // <<< This is the error.
{
return format(zone, len, gSAZones[i][SAZONE_NAME], 0);
}
}
return 0;
}