03.01.2015, 12:30
Hi,
i have code like this in my GM:
new Car[MAX_PLAYERS_EX];
stock BuyCar(playerid,CarID ....)
{
...
Car[playerid] = CreateVehicle(CarID,-1723.4584,234.6916,-0.3534,271.7465,random(100),random(100),-1);
...
and then command /callvehicle. That command transfers player into vehicle, which he created.
But after some time, vehicles ID mix up. For example player ID 1 writes /callvehicle and he was transferred to another vehicle.
Can somebody help me please?
i have code like this in my GM:
new Car[MAX_PLAYERS_EX];
stock BuyCar(playerid,CarID ....)
{
...
Car[playerid] = CreateVehicle(CarID,-1723.4584,234.6916,-0.3534,271.7465,random(100),random(100),-1);
...
and then command /callvehicle. That command transfers player into vehicle, which he created.
But after some time, vehicles ID mix up. For example player ID 1 writes /callvehicle and he was transferred to another vehicle.
Can somebody help me please?