How to make this
#1

hej
i was looking for a cmd to make. i just need some instructions on where to start and how to do it.
the command im trying to create is about reading vehicle's plate and after it will show u the vehicles info like owner etc.
I have made a register system for vehicles but when someone registres the vehicle it puts his name on plate.
Now what i need is a random numbers system which can be putted in plate - but this is okay i can make it
what i dont know to make is how to read if the numbers i write on command exists already in a plate or it doesnt exist so anyone help me pls ? just give me an example
Reply
#2

If the license plate number is defined manually, then it's going to be easy for you to achieve. Automatically generating random unique license plate numbers is a different story, little more complicated, but still possible.

Since it is defined in a command, you can either save all existent license plate numbers in a SQL database, and use a statement to see if a number already exists or not. Or you could store all numbers in an array, and loop through all holding values to see if a number is already taken or not.
Reply
#3

Well i was looking more to store them all into a Mysql database but what should i store into the database 1-plate number 2- vehicle id ?? then from vehicle id get owner and other infos ??
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)