17.07.2016, 03:08
Maybe changing this little bit will work:
pawn Код:
else if(closestspawn != -1 && closestspawn != i)
{
if(spawndist[i] > spawndist[closestspawn]) continue;
else if(spawndist[i] < spawndist[closestspawn])
{
closestspawn = i;
continue;
}
}