25.05.2015, 17:32
Quote:
Saving system? If you use MySQL, create a new table to link a phone number to a player and set the number to be the primary key and auto increment. That way it's guaranteed to be unique.
You could also append the current Unix timestamp (returned by gettime()), although that may make the number too long. It also won't be unique if two or more players are assigned a number at the same second. |
With auto increment, it will start from 1 (or maybe 0) right? That seems like a too short number IMO. I would still try with random and see how it turns out.