11.07.2015, 06:12
PHP код:
for (new i; i < sizeof(Stadium); i++) {
if(IsPlayerInRangeOfPoint(playerid, 2.5, StadiumEntrance[i][x], StadiumEntrance[i][y], StadiumEntrance[i][z])) {
SendClientMessage(playerid, -1, "successful");
return 1;
}
} else {
SendClientMessage(playerid, -1, "not successful");
return 1;
}
You're calling the ELSE statement every single time right?
So lets say you have...
10 Inside your array..
You're going to get 10 messages...
The code Posted above should work.