[Suggestion] Vehicle number plate
#3

pawn Код:
new NumberPlate[MAX_VEHICLES][40]; // At top of script
pawn Код:
stock SetVehicleNumberPlateEx(vehicleid,numberplate[])
{
    if(vehicleid != INVALID_VEHICLE_ID)
    {
        SetVehicleNumberPlate(vehicleid,numberplate[])
        NumberPlate[vehicleid] = numberplate;
    }
    else return 0;
    return 1;
}
pawn Код:
stock GetVehicleNumberPlate(vehicleid)
{
    if(vehicleid != INVALID_VEHICLE_ID)
    {
        return NumberPlate[vehicleid];
    }
    else return 0;
}
Try this. Untested but supposed to work. It will just return 0 if the numberplate hasn't been set.

I know I can type it shorter but this is my way to ident.
Reply


Messages In This Thread
[Suggestion] Vehicle number plate - by scottyishere - 29.11.2010, 15:16
Re: [Suggestion] Vehicle number plate - by Mauzen - 29.11.2010, 15:19
Re: [Suggestion] Vehicle number plate - by Jochemd - 29.11.2010, 15:31
Re: [Suggestion] Vehicle number plate - by scottyishere - 29.11.2010, 15:31
Re: [Suggestion] Vehicle number plate - by Jochemd - 29.11.2010, 15:33
Re: [Suggestion] Vehicle number plate - by kurta999 - 29.11.2010, 15:33
Re: [Suggestion] Vehicle number plate - by Jochemd - 29.11.2010, 15:35
Re: [Suggestion] Vehicle number plate - by scottyishere - 29.11.2010, 15:42
Re: [Suggestion] Vehicle number plate - by Jochemd - 29.11.2010, 15:48
Re: [Suggestion] Vehicle number plate - by smeti - 29.11.2010, 17:24

Forum Jump:


Users browsing this thread: 1 Guest(s)