[HELP] Spawn vehicle deletes old vehicle but deletes also all other players v's
#5

Quote:
Originally Posted by MadeMan
Well the problem seems to be in your vehicle streamer so you have to show DestroyStreamVehicle function.
I don't get it, what does that destroyveh function has to do whit it? here it is
pawn Code:
forward DestroyStreamVehicle(svehicleid);
public DestroyStreamVehicle(svehicleid)
{
    if(svehicleid>=0 && svehicleid<MAX_STREAM_VEHICLES)
    {
      if(VehicleInfo[svehicleid][CREATED])
      {
        if(VehicleInfo[svehicleid][VEHICLE_ID])
        {
          DestroyVehicle(VehicleInfo[svehicleid][VEHICLE_ID]);
          VehicleCount--;
            }
        VehicleInfo[svehicleid][CREATED]=false;
        return 1;
      }
    }
    return 0;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)