Vehicle Saving Issue (REP+)
#4

PHP код:
RespawnVehicle(id)
{
    
DestroyVehicle(id);
    if(
Vehicle[id][VehiclePos][0] != 0.00000 && Vehicle[id][VehiclePos][1] != 0.00000 && Vehicle[id][VehiclePos][2] != 0.00000)
    {
        
Vehicle[id][VehID] = CreateVehicle(Vehicle[id][Model], Vehicle[id][VehiclePos][0], Vehicle[id][VehiclePos][1], Vehicle[id][VehiclePos][2], Vehicle[id][VehiclePos][3], Vehicle[id][VehicleColour][0], Vehicle[id][VehicleColour][1], -1Vehicle[id][Siren]);
        
SetVehicleVirtualWorld(Vehicle[id][VehID], Vehicle[id][VehicleVW]);
        
LinkVehicleToInterior(Vehicle[id][VehID], Vehicle[id][VehicleInt]);
    }
    return 
1;

This is what you are doing:

PHP код:
Vehicle[Vehicle[id][VehID]][VehID] = CreateVehicle(Vehicle[id][Model], Vehicle[id][VehiclePos][0], Vehicle[id][VehiclePos][1], Vehicle[id][VehiclePos][2], Vehicle[id][VehiclePos][3], Vehicle[id][VehicleColour][0], Vehicle[id][VehicleColour][1], -1Vehicle[id][Siren]); 
And for all it will be unknown id

Change like this

PHP код:
RespawnVehicle(id)
{
    
DestroyVehicle(Vehicle[id][VehID]);
    if(
Vehicle[id][VehiclePos][0] != 0.00000 && Vehicle[id][VehiclePos][1] != 0.00000 && Vehicle[id][VehiclePos][2] != 0.00000)
    {
        
Vehicle[id][VehID] = CreateVehicle(Vehicle[id][Model], Vehicle[id][VehiclePos][0], Vehicle[id][VehiclePos][1], Vehicle[id][VehiclePos][2], Vehicle[id][VehiclePos][3], Vehicle[id][VehicleColour][0], Vehicle[id][VehicleColour][1], -1Vehicle[id][Siren]);
        
SetVehicleVirtualWorld(Vehicle[id][VehID], Vehicle[id][VehicleVW]);
        
LinkVehicleToInterior(Vehicle[id][VehID], Vehicle[id][VehicleInt]);
    }
    return 
1;

And in cmd:editvehicle

PHP код:
RespawnVehicle(id); 
Reply


Messages In This Thread
Vehicle Saving Issue (REP+) - by BornHuman - 24.05.2016, 16:01
Re: Vehicle Saving Issue (REP+) - by justjamie - 24.05.2016, 16:05
Re: Vehicle Saving Issue (REP+) - by BornHuman - 24.05.2016, 16:08
Re: Vehicle Saving Issue (REP+) - by ilijap - 24.05.2016, 16:13
Re: Vehicle Saving Issue (REP+) - by BornHuman - 24.05.2016, 16:23
Re: Vehicle Saving Issue (REP+) - by ilijap - 24.05.2016, 16:27
Re: Vehicle Saving Issue (REP+) - by BornHuman - 24.05.2016, 16:29
Re: Vehicle Saving Issue (REP+) - by ilijap - 24.05.2016, 16:31
Re: Vehicle Saving Issue (REP+) - by BornHuman - 24.05.2016, 16:37
Re: Vehicle Saving Issue (REP+) - by Dayrion - 24.05.2016, 16:42

Forum Jump:


Users browsing this thread: 1 Guest(s)