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?