Destroy wrong vehicle
#1

I make ownvehicle.
i use CreateVehicle. But not work correctly.
In cmd i use CreateXVehicle2(ID , car);
My code:
PHP код:
CreateVehicle2(playeridmodelid)
{
    new 
Float:x,Float:y,Float:z,Float:angulo;
    
GetPlayerPos(playeridxyz);
    
GetPlayerFacingAngle(playeridangulo);
    if(
SpawnedVehicle[playerid] != INVALID_VEHICLE_IDDestroyVehicle(SpawnedVehicle[playerid]);
    
SpawnedVehicle[playerid] = CreateVehicle(modelid,x+0.5,y+3,z,angulo,-1,-1,9000);
    
printf("2. playerid:%d ----- SpawnedVehicle:%d -----",playerid,SpawnedVehicle[playerid]);
    return 
1;

2. playerid:13 ----- SpawnedVehicle:480 -----
2. playerid:10 ----- SpawnedVehicle:480 -----
Reply


Messages In This Thread
Destroy wrong vehicle - by MRM - 22.01.2017, 16:16
Re: Destroy wrong vehicle - by aymane123 - 22.01.2017, 16:32
Re: Destroy wrong vehicle - by MRM - 23.01.2017, 15:20
Re: Destroy wrong vehicle - by MRM - 31.01.2017, 17:02
Re: Destroy wrong vehicle - by haikalbintang - 31.01.2017, 17:10
Re: Destroy wrong vehicle - by MRM - 01.02.2017, 08:10
Re: Destroy wrong vehicle - by haikalbintang - 01.02.2017, 14:21
Re: Destroy wrong vehicle - by MRM - 03.06.2017, 15:58

Forum Jump:


Users browsing this thread: 1 Guest(s)