30.11.2011, 15:52
pawn Код:
for(new i, f = MAX_HOTDOGZONES; i < f; i++)
{
if(!IsPlayerInRangeOfPoint(i,5.0,HotDogPlace[i][0],HotDogPlace[i][1],HotDogPlace[i][2])) count++;
else break;
if(count == MAX_HOTDOGZONES//+1) {SendClientMessage(playerid, Red, "« Error »"lyellow"You aren't near a hotdog stand!");break;}
}
then you checked if count is equals to max_hotdogzones, but it will never be equal to it ...
So you should check for the max zones or whatever +1
Another thing i noticed, is that u used playerif instead of i