Help with Licplates please.
#1

Hello,

I need some help with my random licenseplate system. For some reason, the random function of the letters shows me weird sings like *E_ inststead of normal letters.

Random Function:
Код:
new Licplateletters[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
Usage:
Код:
format(str2, sizeof str2,"%s%s%s%s %d%d%d",random(sizeof(Licplateletters)),random(sizeof(Licplateletters)),random(sizeof(Licplateletters)),random(sizeof(Licplateletters)),random(sizeof(Licplatenumbers)),random(sizeof(Licplatenumbers)),random(sizeof(Licplatenumbers)));
Please help me make this working.

Thanks,
Danny
Reply
#2

I guess you should use "Licplateletters[random(...)]" and "random(sizeof(maxiumnumber-1))" when formatting the string.

Replace the red pieces with your own code, it should work, let me know
Reply
#3

Click
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)