A warning.
#6

You declare "idx" so it's by default 0. Then you check if the player is in range of the first garage (that you probably are not). Loop through garages and check if the player is in range of any of those garages and do your code.

And by the way checking if the player is inside the current vehicle he is, it's a bit pointless. Just use the check about the state (if it's PLAYER_STATE_DRIVER).
Reply


Messages In This Thread
A warning. - by Laure - 07.06.2014, 13:43
Re: A warning. - by Konstantinos - 07.06.2014, 13:45
Re: A warning. - by Laure - 07.06.2014, 13:47
Re: A warning. - by Parallex - 07.06.2014, 13:48
Re: A warning. - by Laure - 07.06.2014, 13:50
Re: A warning. - by Konstantinos - 07.06.2014, 13:54
Re: A warning. - by Laure - 07.06.2014, 14:04
Re: A warning. - by Konstantinos - 07.06.2014, 14:18
Re: A warning. - by Laure - 07.06.2014, 14:19
Re: A warning. - by Laure - 07.06.2014, 14:39

Forum Jump:


Users browsing this thread: 3 Guest(s)