Except
#1

How do I except something from a command/function?

Like, I'll explain it easy, If I want something done for all, EXCEPT myself?

Well, basicly what I'm trying to do, Is to get a var from the closest vehicle.
The problem is that I get the var from my own vehicle, because It's the closest vehicle.

I want it for the closest vehicle, EXCEPT mine.
Reply
#2

In the loop which searches the closest vehicle
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
  if(GetPlayerVehicleID(playerid) == vehicleid) //the variable used in your loop which goes through vehicles
  {
    continue; //skips the current loop
  }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)