Proper way to check if another player is in your vehicle? Need assistance.
#4

You check if the vehicleid is one of those who have been stored in BC array. If its size is not 2000 (which it shouldn't), you don't have to loop so many times. Also using foreach will reduce the times it loops through the players.

About this line:
pawn Код:
else return SendClientMessage(j, Yellow , "Nobody in Bait-Car.");
You use "return" so it breaks the loop. You send the message to the "j" which is the loop's variable for the vehicles and not the players.
Reply


Messages In This Thread
Proper way to check if another player is in your vehicle? Need assistance. - by Aerotactics - 22.04.2014, 17:23
Re: Proper way to check if another player is in your vehicle? Need assistance. - by Fel486 - 22.04.2014, 17:43
Re: Proper way to check if another player is in your vehicle? Need assistance. - by Aerotactics - 22.04.2014, 17:55
Re: Proper way to check if another player is in your vehicle? Need assistance. - by Konstantinos - 22.04.2014, 18:24

Forum Jump:


Users browsing this thread: 2 Guest(s)