Solucionar este warning con la matrнcula
#1

Buenas, en OnGameModeInit tengo esto:

Код:
SetVehicleNumberPlate(CreateVehicle(Coche[h][Modelo],Coche[h][Posicionx],Coche[h][Posiciony],Coche[h][Posicionz],Coche[h][Angulo],Coche[h][ColorUno],Coche[h][ColorDos],0), "%d", Coche[h][Matricula]);
Para que a los autos se les ponga la matrнcula que se haya guardado anteriormente, їquй hice mal en el cуdigo?
Reply
#2

https://sampwiki.blast.hk/wiki/SetVehicleNumberPlate.

pawn Код:
new vehicleid = CreateVehicle(542, 2074.73, 1089.89, 10.51, 0.0, -1, -1, -1);
SetVehicleNumberPlate(vehicleid, "ABCD 123");
.

pawn Код:
new string[15],
    coche = CreateVehicle(Coche[h][Modelo],Coche[h][Posicionx],Coche[h][Posiciony],Coche[h][Posicionz],Coche[h][Angulo],Coche[h][ColorUno],Coche[h][ColorDos],0);

format(string, sizeof(string), "%s", Coche[h][Matricula]);
SetVehicleNumberPlate(coche, string);
ЎFeliz aсo nuevo!
Reply
#3

ЎMuchas gracias! Siempre ayudas a los demбs, feliz aсo nuevo. Me sirviу el cуdigo de abajo. Ya pueden cerrar el tema, solucionado.
Reply
#4

pawn Код:
format(Coche[h][Matricula], 20, "%s", "ABCD 123");

new coche = CreateVehicle(Coche[h][Modelo],Coche[h][Posicionx],Coche[h][Posiciony],Coche[h][Posicionz],Coche[h][Angulo],Coche[h][ColorUno],Coche[h][ColorDos],0);
SetVehicleNumberPlate(coche, Coche[h][Matricula]);
pawn Код:
format(Coche[h][Matricula], 20, "%s", "ABCD 123");
SetVehicleNumberPlate(CreateVehicle(Coche[h][Modelo],Coche[h][Posicionx],Coche[h][Posiciony],Coche[h][Posicionz],Coche[h][Angulo],Coche[h][ColorUno],Coche[h][ColorDos],0), Coche[h][Matricula]);
que tengan un feliz ano nuevo!. xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)