30.11.2011, 14:10
Like, I have this loop, but I wan't to check if the player is in range of point of any "hot dog zone".
Even if he ain't, it doesn't say "You aren't near a hot dog stand" <.<
Even if he ain't, it doesn't say "You aren't near a hot dog stand" <.<
pawn Код:
for(new i, f = MAX_HOTDOGZONES; i < f; i++)
{
if(!IsPlayerInRangeOfPoint(playerid,5.0,HotDogPlace[i][0],HotDogPlace[i][1],HotDogPlace[i][2])) count++;
else break;
if(count == MAX_HOTDOGZONES) {SendClientMessage(playerid, Red, "« Error »"lyellow"You aren't near a hotdog stand!");break;}
}