Posts: 142
Threads: 54
Joined: Apr 2012
Reputation:
0
How do I make a serial number in register?
Example: (After registration looks like this)
Your serial number: 7
Server registered players: 7
Hope you understand me, I want it to be in the library y_ini
Posts: 2,698
Threads: 37
Joined: Mar 2012
Reputation:
0
Create a variable that increments by +1 on every registration. Save that variable separately on a file (since you wanted to use y_ini). Whenever the player registers, you can set their ID to the variable's value and the increase it.
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
With what intent? If you've seen that in another server, it most likely means that they are using MySQL. In such cases the id (or "serial number" as you call it) is used to uniquely identify players across different tables in the database.
Posts: 142
Threads: 54
Joined: Apr 2012
Reputation:
0
I do not know how to do it please help me?