23.07.2018, 10:00
which of these two functions is faster and better, or are they both the same?
1:
or
2:
1:
PHP код:
if(zGangZones[zoneid][zIsUsingBorders])
{
GangZoneHideForPlayer(playerid, zGangZones[zoneid][border][0]);
GangZoneHideForPlayer(playerid, zGangZones[zoneid][border][1]);
GangZoneHideForPlayer(playerid, zGangZones[zoneid][border][2]);
GangZoneHideForPlayer(playerid, zGangZones[zoneid][border][3]);
}
2:
PHP код:
if(zGangZones[zoneid][zIsUsingBorders])
{
for(new i = 0; i < 4; i++) {
GangZoneHideForPlayer(playerid, zGangZones[zoneid][border][i]);
}
}