This sets the plate to 16 characters, why? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: This sets the plate to 16 characters, why? (
/showthread.php?tid=316399)
This sets the plate to 16 characters, why? -
Dokins - 06.02.2012
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?
Re: This sets the plate to 16 characters, why? - T0pAz - 06.02.2012
pawn Код:
printf("Max Vehicle Plate Length: %d", MAX_VEHICLE_PLATE);
Put this on
OnGameModeInit.
Re: This sets the plate to 16 characters, why? -
Dokins - 06.02.2012
It prints "8".