Vehicle Plate Generation problem
#4

@Shinja - read up on format syntax, you can add leading zeroes much more easily:
pawn Код:
new LastPlate;
stock GetNewPlate()
{
    new str[7];
    format(str, sizeof(str), "AAA_%03d", LastPlate);
    LastPlate++;
    return str;
}
Reply


Messages In This Thread
[Done] Vehicle Plate Generation problem - by TeddHUN - 30.07.2017, 01:48
Re: Vehicle Plate Generation problem - by Kane - 30.07.2017, 02:17
Re: Vehicle Plate Generation problem - by Shinja - 30.07.2017, 02:21
Re: Vehicle Plate Generation problem - by Misiur - 30.07.2017, 02:51
Re: Vehicle Plate Generation problem - by TeddHUN - 30.07.2017, 19:11

Forum Jump:


Users browsing this thread: 1 Guest(s)