Vehicle Respawn help
#1

Hi , i have a small problem , when i do /park it's say "The vehicle will be respawned here next time" , but when i respawn all vehicles , the vehicle will respawned at the default positions, if anyone can help :


ParkVehicles fonction
PHP код:
stock parkVehicles(vehicleidintvw)
{
    new 
Float:xFloat:yFloat:z;
    
GetVehiclePos(Vehicles[vehicleid][vehicleData], xyz);
    
GetVehicleZAngle(Vehicles[vehicleid][vehicleData], Vehicles[vehicleid][vehPos][3]);
    
Vehicles[vehicleid][vehPos][0] = x;
    
Vehicles[vehicleid][vehPos][1] = y;
    
Vehicles[vehicleid][vehPos][2] = z;
    
Vehicles[vehicleid][vehInt] = int;
    
Vehicles[vehicleid][vehVW]    = vw;
    
saveVehicles(vehicleid);
    return 
1;

PHP код:
new Player[playerid][carVCP];
                        
parkVehicles(iGetPlayerInterior(playerid), GetPlayerVirtualWorld(playerid));
                        
Server(playerid"Your Vehicle will be spawned here next time."); 
Reply


Messages In This Thread
Vehicle Respawn help - by AlexBlack - 12.05.2015, 15:53
Re: Vehicle Respawn help - by Konstantinos - 12.05.2015, 15:57
Re: Vehicle Respawn help - by tantri - 12.05.2015, 15:57
Re: Vehicle Respawn help - by Azula - 12.05.2015, 16:06
Re: Vehicle Respawn help - by Konstantinos - 12.05.2015, 16:08
Re : Vehicle Respawn help - by AlexBlack - 12.05.2015, 16:20
Re : Vehicle Respawn help - by AlexBlack - 12.05.2015, 16:26

Forum Jump:


Users browsing this thread: 1 Guest(s)