Time Account Delete
#1

Hello, I want to delete the account is not entered within 15 days of their registration to the server. How can I do.

Sorry. My English bad.
Reply
#2

Use getdate(), store last login date (day, month and year) for each player, do some little math and compare it to the current date when you want to delete accounts.
Reply
#3

Quote:
Originally Posted by [KHK]Khalid
Посмотреть сообщение
Use getdate(), store last login date (day, month and year) for each player, do some little math and compare it to the current date when you want to delete accounts.
How do I make cleanup
Reply
#4

Quote:
Originally Posted by sampkinq
Посмотреть сообщение
How do I make cleanup
Khalid just told you. Save their last login date with getdate() (or gettime() for easier calculations) when they log in, and make some function that calculates the current unix timestamp (https://sampforum.blast.hk/showthread.php?tid=254915) goes through all accounts and calculates if difference between the current timestamp and the last login timestamp is 1,296,000 (15 days). Then, do whatever you want with it.
Reply
#5

You can make it in many ways.
How do you keep account info? Is it a database or a simple line in file?
Reply
#6

Quote:
Originally Posted by prineside
Посмотреть сообщение
You can make it in many ways.
How do you keep account info? Is it a database or a simple line in file?
As a recording system <SII> I'm using.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)