10.07.2015, 15:35
(
Последний раз редактировалось Darkwood17; 11.07.2015 в 07:06.
Причина: Solved
)
Hello,
I'm using this code to check is the player near any Stadium entrance. It should return "successful" when the player is near and "not successful" when the player is away.
The problem is that everytime it returns "not successful", independently the player is near or not.
EDIT: This problem is solved.
I'm using this code to check is the player near any Stadium entrance. It should return "successful" when the player is near and "not successful" when the player is away.
Код:
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"); else SendClientMessage(playerid, -1, "not successful"); break; }
EDIT: This problem is solved.