10.12.2017, 12:53
I have some confusing(for me) errors
Lines:
Line Errors:
Код:
(34197) : warning 213: tag mismatch (34198) : warning 213: tag mismatch (34199) : warning 213: tag mismatch (34208) : warning 213: tag mismatch (34209) : warning 213: tag mismatch (34210) : warning 213: tag mismatch
PHP код:
stock IsBizInZone(bizid, zoneid)
{
if(zoneid == -1) return false;
new a,b,c;
a = BusinessInfo[bizid][bEntranceX];
b = BusinessInfo[bizid][bEntranceY];
c = BusinessInfo[bizid][bEntranceZ];
if(BusinessInfo[bizid][bEntranceX] >= SanAndreasZones[zoneid][Zone_Area][0] && a < SanAndreasZones[zoneid][Zone_Area][3] && b >= SanAndreasZones[zoneid][Zone_Area][1] && b < SanAndreasZones[zoneid][Zone_Area][4] && c >= SanAndreasZones[zoneid][Zone_Area][2] && c < SanAndreasZones[zoneid][Zone_Area][5] && a < 900.0) return true;
return false;
}
stock IsHouseInZone(houseid, zoneid)
{
if(zoneid == -1) return false;
new a,b,c;
a = HouseInfo[houseid][hEntranceX];
b = HouseInfo[houseid][hEntranceY];
c = HouseInfo[houseid][hEntranceZ];
if(HouseInfo[houseid][hEntranceX] >= SanAndreasZones[zoneid][Zone_Area][0] && a < SanAndreasZones[zoneid][Zone_Area][3] && b >= SanAndreasZones[zoneid][Zone_Area][1] && b < SanAndreasZones[zoneid][Zone_Area][4] && c >= SanAndreasZones[zoneid][Zone_Area][2] && c < SanAndreasZones[zoneid][Zone_Area][5] && a < 900.0) return true;
return false;
}
PHP код:
a = BusinessInfo[bizid][bEntranceX];
b = BusinessInfo[bizid][bEntranceY];
c = BusinessInfo[bizid][bEntranceZ];
a = HouseInfo[houseid][hEntranceX];
b = HouseInfo[houseid][hEntranceY];
c = HouseInfo[houseid][hEntranceZ];