07.10.2018, 17:43
Wouldn't that basically reset if the server got Stopped/Restarted?
I believe the best solutions would be:
- Use MySQL and have it define the UID as unique/incremental, now you know that last UID is the amount of signed up players.
- For INI (obviously includes Y_INI), Create a file and have the count in it, After every registration done, Open the file, read that number, Increment it, wipe the file, write the new number, close the file.
Conclusion: Don't count on arrays/variables. Store the value somewhere. Cheers!
I believe the best solutions would be:
- Use MySQL and have it define the UID as unique/incremental, now you know that last UID is the amount of signed up players.
- For INI (obviously includes Y_INI), Create a file and have the count in it, After every registration done, Open the file, read that number, Increment it, wipe the file, write the new number, close the file.
Conclusion: Don't count on arrays/variables. Store the value somewhere. Cheers!