This sets the plate to 16 characters, why?
#1

pawn Код:
new string[MAX_VEHICLE_PLATE];
            new const charset[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";

            for(new i; i < MAX_VEHICLE_PLATE; i++)
            {
                string[i] = charset[RandomEx(0, sizeof(charset) - 1)];
            }
The plate should be 8 characters according to the MAX_VEHICLE_PLATE anyone tell me why?
Reply
#2

pawn Код:
printf("Max Vehicle Plate Length: %d", MAX_VEHICLE_PLATE);
Put this on OnGameModeInit.
Reply
#3

It prints "8".
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)