• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Random letters and numbers
#1
Hi guys. could you help me generate numbers and letters in the same string?



Does not work. how could i do?



Code:
stock CreateVehiclePlate()

{

? ? new string[10];

? ? format(string, sizeof(string), "%s %d %s %s",? random('A'-'Z'), random('0'-'9'), random('A'-'Z'), random('A'-'Z'));

? ? return string;

}
  Reply


Messages In This Thread
Random letters and numbers - by Frajola - 2020-11-25, 10:18 PM
RE: Random letters and numbers - by Freaksken - 2020-11-25, 11:20 PM
RE: Random letters and numbers - by Frajola - 2020-11-26, 01:01 AM
RE: Random letters and numbers - by Kwarde - 2020-11-26, 02:27 AM
RE: Random letters and numbers - by Frajola - 2020-11-26, 03:40 AM

Forum Jump: