Vehicle License plate
#3

Didn't test it, but this should work:

pawn Код:
stock ChangeVehPlate( vehicleid )
{
    new string[8], string2[4];
   
    if( vehicleid < 10 ) format(string2,sizeof(string2),"00%i", vehicleid );
    else if( vehicleid < 100 ) format(string2,sizeof(string2),"0%i", vehicleid );
    else format(string2,sizeof(string2),"%i", vehicleid );
   
    format(string,sizeof(string),"LV-%s", string2 );
   
    SetVehicleNumberPlate( vehicleid, string );
   
    return 1;
}
Reply


Messages In This Thread
Vehicle License plate - by DannySnoopy - 12.03.2012, 10:47
Re: Vehicle License plate - by DannySnoopy - 12.03.2012, 11:14
Re: Vehicle License plate - by clavador - 12.03.2012, 11:22
Re: Vehicle License plate - by Vince - 12.03.2012, 11:37
Re: Vehicle License plate - by DannySnoopy - 12.03.2012, 12:49
Re: Vehicle License plate - by Jonny5 - 12.03.2012, 14:02
Re: Vehicle License plate - by DannySnoopy - 12.03.2012, 14:17
Re: Vehicle License plate - by DannySnoopy - 12.03.2012, 14:58
Re: Vehicle License plate - by clavador - 12.03.2012, 18:05
Re: Vehicle License plate - by Jonny5 - 12.03.2012, 19:24

Forum Jump:


Users browsing this thread: 6 Guest(s)