SA-MP Forums Archive
Solucionar este warning con la matrнcula - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Solucionar este warning con la matrнcula (/showthread.php?tid=553834)



Solucionar este warning con la matrнcula - ib95 - 31.12.2014

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?


Respuesta: Solucionar este warning con la matrнcula - Zume - 31.12.2014

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!


Re: Solucionar este warning con la matrнcula - ib95 - 31.12.2014

Ў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.


Respuesta: Solucionar este warning con la matrнcula - OTACON - 31.12.2014

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