Problema guardado de color de coche
#1

Hola, tengo el problema que no se me guarda el color del coche al desconectarme y parkearlo.

Код:
stock LoadAllPlayerVehicleMods(playerid)
{
//print(" Modificaciones de todos los autos cargadas.");
for(new v = 0; v < MAX_PLAYERVEHICLES; v++)
{
    if(PlayerVehicleInfo[playerid][v][pvModelId] != 0 && PlayerVehicleInfo[playerid][v][pvImpounded] == 0)
    {
        new paintjob = PlayerVehicleInfo[playerid][v][pvPaintJob];
    	new color1 = PlayerVehicleInfo[playerid][v][pvColor1];
        new color2 = PlayerVehicleInfo[playerid][v][pvColor2];
        if(PlayerVehicleInfo[playerid][v][pvPaintJob] != -1)
        {
            ChangeVehiclePaintjob(PlayerVehicleInfo[playerid][v][pvId], paintjob);
        }
        ChangeVehicleColor(PlayerVehicleInfo[playerid][v][pvId], color1, color2);
        for(new m = 0; m < MAX_MODS; m++)
        {
        	AddVehicleComponent(PlayerVehicleInfo[playerid][v][pvId], PlayerVehicleInfo[playerid][v][pvMods][m]);
        }
	}
}
}
Ese stock guarda todas las modificaciones tambien el color, coloco LoadAllPlayerVehicleMods(playerid); en Onplayerdisconnect y en el cmd /estacionar y no pasa nada.
Gracias.
Reply


Messages In This Thread
Problema guardado de color de coche - by M@ty - 05.03.2015, 00:19
Respuesta: Problema guardado de color de coche - by Goncho28 - 05.03.2015, 08:58
Respuesta: Problema guardado de color de coche - by M@ty - 05.03.2015, 14:10

Forum Jump:


Users browsing this thread: 1 Guest(s)