new Vehiculo = CreateVehicle(InformacionVehiculo_[TotalVehiculos][vModelo], InformacionVehiculo_[TotalVehiculos][vPos][0], InformacionVehiculo_[TotalVehiculos][vPos][1], InformacionVehiculo_[TotalVehiculos][vPos][2], InformacionVehiculo_[TotalVehiculos][vAngle], InformacionVehiculo_[TotalVehiculos][vColor][0], InformacionVehiculo_[TotalVehiculos][vColor][1], 600000);
LinkVehicleToInterior(Vehiculo, InformacionVehiculo_[TotalVehiculos][vInterior]), SetVehicleVirtualWorld(Vehiculo, InformacionVehiculo_[TotalVehiculos][vVirtualWorld]);
SetVehicleNumberPlate(Vehiculo, InformacionVehiculo_[TotalVehiculos][vMatricula]);
new string[80];
switch(InformacionVehiculo_[TotalVehiculos][vTipo])
{
case 0:
{
format(string, sizeof(string), "%s(N)\nЎEn venta por $%d!\nCantidad Disponible: %d", NombreVehiculo_(InformacionVehiculo_[TotalVehiculos][vModelo]), FormatMoney(InformacionVehiculo_[TotalVehiculos][vPrecio]), InformacionVehiculo_[TotalVehiculos][vCantidad]);
}
case 1:
{
format(string, sizeof(string), "%s(P)\nЎEn venta por $%d!\nCantidad Disponible: %d", NombreVehiculo_(InformacionVehiculo_[TotalVehiculos][vModelo]), FormatMoney(InformacionVehiculo_[TotalVehiculos][vPrecio]), InformacionVehiculo_[TotalVehiculos][vCantidad]);
}
}
InformacionVehiculo_[Vehiculo][vTexto] = CreateDynamic3DTextLabel(string, COLOR_BLANCO, InformacionVehiculo_[TotalVehiculos][vPos][0], InformacionVehiculo_[TotalVehiculos][vPos][1], InformacionVehiculo_[TotalVehiculos][vPos][2], 10.0);
Attach3DTextLabelToVehicle(InformacionVehiculo_[Vehiculo][vTexto][Vehiculo], Vehiculo, 0.0, 0.0, 2.0);
ActualizarVehiculo(TotalVehiculos);
InformacionVehiculo_[Vehiculo][vTexto];
Attach3DTextLabelToVehicle(InformacionVehiculo_[Vehiculo][vTexto], Vehiculo, 0.0, 0.0, 2.0);
|
Fнjate que aсadiste un [Vehiculo] de mбs al primer parбmetro. Estбs aсadiendo el texto en la variable:
Код:
InformacionVehiculo_[Vehiculo][vTexto]; Код:
Attach3DTextLabelToVehicle(InformacionVehiculo_[Vehiculo][vTexto], Vehiculo, 0.0, 0.0, 2.0); |