Need an answer. - 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: Need an answer. (
/showthread.php?tid=164715)
Need an answer. -
ViruZZzZ_ChiLLL - 01.08.2010
Okay, so I've made a Racing GM.
Then here's my question :
I have 30 Cars for my Racing GM, all in one area (Row and column)
Then for example, 30 player's spawn at the same time, using
PutPlayerInVehicle(playerid, CreateVehicle(601, x, y, z, 0, -1, -1, -1), 0)
will all 30 cars be filled or will it just cause a crash?
Re: Need an answer. -
Kar - 01.08.2010
it wont crash
Re: Need an answer. -
ViruZZzZ_ChiLLL - 01.08.2010
Well will all car be filled up anyways?
+ I saw this on the wiki :
Quote:
Important Note: If the seat is invalid or is taken, will cause a crash when they EXIT the car.
|
On PutPlayerInVehicle.
Re: Need an answer. -
Kar - 01.08.2010
https://sampwiki.blast.hk/wiki/GetPlayerVehicleSeat
check if someone is already in one of the vehicle seats if not putplayer in vehicle
or they crrash when they exit
Re: Need an answer. -
legodude - 01.08.2010
could make a function or sumthing
putplayerinveh(playerid)
{
new Vehid = 0;
PutPlayerInVehicle(playerid,Vehid,0)
Vehid++
}
or something like taht wich automaticallly increases the vehid
Re: Need an answer. -
ViruZZzZ_ChiLLL - 01.08.2010
Okay, wait lemme explain again :
So I have 3 cars setted-up.
Then when the 3 players spawn
at the same time, they each
will be putted at those 3 cars,
like ID 0 goes to car 1, ID1 goes
to car 2, etc... Which ever is the
car that has no driver in it.
Re: Need an answer. -
Hiddos - 01.08.2010
All vehicles will be filled, but it may cause some shitty things to be able to happen, like empty cars on the track.
Re: Need an answer. -
MadeMan - 01.08.2010
Quote:
Originally Posted by ViruZZzZ_ChiLLL
I saw this on the wiki :
Quote:
Important Note: If the seat is invalid or is taken, will cause a crash when they EXIT the car.
|
On PutPlayerInVehicle.
|
It means if you put player into back seat when the car has only 2 seats.
Re: Need an answer. -
Kar - 01.08.2010
or if someone is in the driver seat and u put him in the drive seat when he exits he crashs