OnVehicleStreamIn
#3

Quote:
Originally Posted by Dak.
pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
    if(IsACopCar(vehicleid))
    {
      if(IsAStateMember(forplayerid))
      {
        SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 0);
      }
    }
    else
    {
      SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 1);
    }
    return 1;
}
A bracket was in the wrong place.
The Indentation is messy so i think he means like this:
if(StateMember(forplayerid)){}else{}
Not
if(IsACopCar(vehicleid)){}else{}

and #.' I don't understand what you mean by it dosen't work, what dosen't work about it?
Reply


Messages In This Thread
OnVehicleStreamIn - by Justsmile - 28.11.2009, 12:51
Re: OnVehicleStreamIn - by Dak_Cobain - 28.11.2009, 12:55
Re: OnVehicleStreamIn - by miokie - 28.11.2009, 12:59
Re: OnVehicleStreamIn - by Justsmile - 29.11.2009, 09:46
Re: OnVehicleStreamIn - by diesulke - 29.11.2009, 09:54
Re: OnVehicleStreamIn - by yezizhu - 29.11.2009, 09:56
Re: OnVehicleStreamIn - by Justsmile - 29.11.2009, 09:56

Forum Jump:


Users browsing this thread: 1 Guest(s)