SA-MP Forums Archive
PutPlayerInVehicle Crashes? - 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: PutPlayerInVehicle Crashes? (/showthread.php?tid=98849)



PutPlayerInVehicle Crashes? - pyrodave - 23.09.2009

Without using a rather unmanageable array, or a for loop, checking the ID of the player who is driver of a vehicle isn's possible (to my knowledge). I was wondering, if PutPlayerInVehicle is used on a player who is not in a vehicle, to put them into a vehicle's driver seat, which is currently occupied, if will cause CLIENT crashes (for the person trying to be put into the vehicle, or the current occupant of the vehicle) under any circumstances? Or if the function will just fail and no adverse affects on the players involved?

Just a quick question, thanks to anyone who knows an answer :P


Re: PutPlayerInVehicle Crashes? - Mike Garber - 23.09.2009

I don't think It will crash.
And yes, It's possible to check the driver of a vehicle, even the last driver of an unoccupied vehicle (That didn't respawn).

I think I've been accidently detained a suspect on a roleplay server in the same seat as another one,
and then re-detained him to the correct seat, multiple times, and they didn't crash.

Why don't you try it?





Re: PutPlayerInVehicle Crashes? - pyrodave - 23.09.2009

Ok, thanks for your advice