Need an answer.
#1

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?
Reply
#2

it wont crash
Reply
#3

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.
Reply
#4

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
Reply
#5

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
Reply
#6

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.
Reply
#7

All vehicles will be filled, but it may cause some shitty things to be able to happen, like empty cars on the track.
Reply
#8

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.
Reply
#9

or if someone is in the driver seat and u put him in the drive seat when he exits he crashs
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)