Vehicle Plates
#5

Quote:
Originally Posted by Sunehildeep
Посмотреть сообщение
I guess you should making something like this.
PHP код:
new Plates[MAX_VEHICLES][30];
SetVehicleNumberPlateEx(vehicleidplate[])
{
    
SetVehicleNumberPlateEx(vehicleidplate);
    
format(Plates[vehicleid],30,plate);
    return 
1;
}
UsageSetVehicleNumberPlateEx(vehicleid"ABCD 123");
GetIDFromPlate(plate[])
{
    for(new 
0MAX_VEHICLESi++)
    {
        if(!
strcmp(Plates[i],plate)) return i;
    }
    return -
1;
}
UsageGetIDFromPlate("ABCD 123"); 
And save the Plates variable too.
Awesome! Just wanna ask if
PHP код:
SetVehicleNumberPlateEx(vehicleidplate[])
{
    
SetVehicleNumberPlateEx(vehicleidplate);//shouldn't this be SetVehicleNumberPlate?
    
format(Plates[vehicleid],30,plate);
    return 
1;

Reply


Messages In This Thread
Vehicle Plates - by NealPeteros - 03.06.2017, 13:04
Re: Vehicle Plates - by Abagail - 03.06.2017, 13:27
Re: Vehicle Plates - by NealPeteros - 03.06.2017, 14:31
Re: Vehicle Plates - by StrikerZ - 03.06.2017, 14:40
Re: Vehicle Plates - by NealPeteros - 03.06.2017, 14:42
Re: Vehicle Plates - by StrikerZ - 03.06.2017, 14:44

Forum Jump:


Users browsing this thread: 1 Guest(s)