Looping
#1

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.
Код:
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;
}
The problem is that everytime it returns "not successful", independently the player is near or not.

EDIT: This problem is solved.
Reply


Messages In This Thread
Looping (solved) - by Darkwood17 - 10.07.2015, 15:35
Re: Looping - by notime - 10.07.2015, 15:40
Re: Looping - by Darkwood17 - 10.07.2015, 15:45
Re: Looping - by notime - 10.07.2015, 15:46
Re: Looping - by Vince - 10.07.2015, 16:44
Re: Looping - by Darkwood17 - 10.07.2015, 17:48
Re: Loop - by Darkwood17 - 11.07.2015, 05:39
Re: Looping - by Prokill911 - 11.07.2015, 06:12
Re: Looping - by Darkwood17 - 11.07.2015, 06:29
Re: Looping - by Prokill911 - 11.07.2015, 06:34

Forum Jump:


Users browsing this thread: 8 Guest(s)