OnVehicleStreamIn - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: OnVehicleStreamIn (
/showthread.php?tid=110734)
OnVehicleStreamIn -
Justsmile - 28.11.2009
THis Code dont work.
pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
if(IsACopCar(vehicleid))
{
if(IsAStateMember(forplayerid))
{
SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 0);
}
else
{
SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 1);
}
}
return 1;
}
Re: OnVehicleStreamIn -
Dak_Cobain - 28.11.2009
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.
Re: OnVehicleStreamIn -
miokie - 28.11.2009
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?
Re: OnVehicleStreamIn -
Justsmile - 29.11.2009
I want, that Only for Police Man are the police cars opened. Understand me?
Re: OnVehicleStreamIn -
diesulke - 29.11.2009
Do you have a RL server? With teams?
Re: OnVehicleStreamIn -
yezizhu - 29.11.2009
plz show function ' IsACopCar'
Re: OnVehicleStreamIn -
Justsmile - 29.11.2009
I just done it. But thanks for help