SA-MP Forums Archive
Bug SetVehicleParamsCarDoors() - 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)
+--- Thread: Bug SetVehicleParamsCarDoors() (/showthread.php?tid=571366)



Bug SetVehicleParamsCarDoors() - Locky_ - 18.04.2015

They just closes. You can not open the function.

Код:
SetVehicleParamsCarDoors(vehicleid, 1, 0, 1, 1);
If the door is open it closes. If it is closed, not open.


Re: Bug SetVehicleParamsCarDoors() - Meta - 18.04.2015

playerid is wrong here, eh?


Re: Bug SetVehicleParamsCarDoors() - Admigo - 18.04.2015

Quote:
Originally Posted by Nickvj7
Посмотреть сообщение
They just closes. You can not open the function.

Код:
SetVehicleParamsCarDoors(playerid, 1, 0, 1, 1);
If the door is open it closes. If it is closed, not open.
Код:
SetVehicleParamsCarDoors(GetPlayerVehicleID(playerid), 1, 0, 1, 1);



Re: Bug SetVehicleParamsCarDoors() - Locky_ - 18.04.2015

It was a typo here in the forum. In my code is very different however is the aforementioned way.