plate don't load - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: plate don't load (
/showthread.php?tid=512604)
plate don't load -
jcvag44800 - 11.05.2014
Hello,
This is my command for load plate number:
(plaque(fr) = plate (en)
)
Код:
mysql_get_field("plaque",Field); CarInfo[i][cPlate] = strval(Field);
And the code for create vehicle:
Код:
for(new h = 0; h < sizeof(CarInfo); h++)
{
AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);
SetVehicleNumberPlate(h, CarInfo[h][cPlate]);
}
But, the plate isn't load...
The field of the plate is: TEXT
Regards
Re: plate don't load -
Smileys - 11.05.2014
if I remember correctly you have to REspawn the vehicle after setting it's plate; with:
https://sampwiki.blast.hk/wiki/SetVehicleToRespawn
Re : plate don't load -
jcvag44800 - 11.05.2014
Sorry, I didn't say, but I had already reload it and don't work too..