[Pawn] IsPlayerInRangeOfPoint - Printable Version + open.mp forum (https://forum.open.mp) -- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) --- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10) --- Thread: [Pawn] IsPlayerInRangeOfPoint (/showthread.php?tid=661) |
IsPlayerInRangeOfPoint - Salesman - 2019-06-18 Okay so I did this command and it should be able to loop from all of the Hangars to find the one where the player is close to, but it always returns the else message. Code: cmd:hangar(playerid){ RE: IsPlayerInRangeOfPoint - Y_Less - 2019-06-19 Because you have `return` inside the loop. So the first hangar they aren't near ends the loop. Move the failure case outside the loop and add `return` to the success case inside the loop. |