Simple Vehicle Numer Plates - 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: Simple Vehicle Numer Plates (
/showthread.php?tid=299403)
Simple Vehicle Numer Plates -
Dripac - 25.11.2011
I want to simply add one Vehicle Plate to all of the vehicles,
I load the vehicles from a txt file in scriptfiles
So how can i simply set a number plate to all vehicles?
Re: Simple Vehicle Numer Plates -
IceCube! - 25.11.2011
Under ONGameModeInit where you have loaded every car do
pawn Код:
for(new i=0;i<MAX_VEHICLES;i++)
{
SetVehiclePlate(i, "Plate");
}
AW: Simple Vehicle Numer Plates -
Dripac - 25.11.2011
error 017: undefined symbol "SetVehiclePlate" =/
Re: Simple Vehicle Numer Plates -
MathijsS - 25.11.2011
I have this:
Код:
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/whetstone.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/bone.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/flint.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/tierra.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/red_county.txt");
//CUSTOM
//total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/custom1.txt");
printf("Total vehicles from files: %d",total_vehicles_from_files);
for(new i = 1; i < MAX_VEHICLES; i ++)
{
SetVehicleNumberPlate(i, "~NUMBERPLATE");
}
Works 100%, i have it.
Re: Simple Vehicle Numer Plates -
IceCube! - 25.11.2011
SetVehicleNumberPlate(); Sorry :P
AW: Simple Vehicle Numer Plates -
Dripac - 25.11.2011
Thanks, its working now, +rep for the above guy,
Sry Ice it says i can't give you because i did it 2 hours ago already =/
Re: Simple Vehicle Numer Plates -
IceCube! - 25.11.2011
No problem, REP isnt everything +REP For trying xD