The number of registered
#2

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!
Reply


Messages In This Thread
The number of registered - by KamilPolska - 07.10.2018, 17:39
Re: The number of registered - by XxBaDxBoYxX - 07.10.2018, 17:43
Re: The number of registered - by v1k1nG - 07.10.2018, 17:44
Re: The number of registered - by KamilPolska - 07.10.2018, 19:49
Re: The number of registered - by v1k1nG - 07.10.2018, 21:59
Re: The number of registered - by DaniceMcHarley - 07.10.2018, 22:46
Re: The number of registered - by GameOvr - 09.10.2018, 10:07
Re: The number of registered - by TheToretto - 09.10.2018, 11:37
Re: The number of registered - by jasperschellekens - 09.10.2018, 11:42
Re: The number of registered - by NaS - 09.10.2018, 12:05

Forum Jump:


Users browsing this thread: 1 Guest(s)