22.02.2014, 14:37
So my Vehicle Number plates are not working
I have this under OnVehicleSpawn and the same under LoadPlayerVehicles
It sets Custom Plate if vehicle have and if vehicle number plate is 0 it's suposed to set random vehicle plate
I have this under OnVehicleSpawn and the same under LoadPlayerVehicles
PHP код:
if(!isnull(PlayerVehicleInfo[i][v][pvPlate])) {
SetVehicleNumberPlate(PlayerVehicleInfo[i][v][pvId], PlayerVehicleInfo[i][v][pvPlate]);
}
else
{
new string[128], randletter[2];
randletter[0] = lAlphabet[random(sizeof(lAlphabet))][0];
randletter[1] = lAlphabet[random(sizeof(lAlphabet))][0];
format(string, sizeof(string), "%s%s%d", randletter[0], randletter[1], vehicleid);
SetVehicleNumberPlate(vehicleid, string);
}