13.12.2014, 12:10
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.