Delete accounts
#1

How i can make if the player didn't play 1 mouth automatically to delete the player account
Reply
#2

check with mktime register date and last login date, if the date difference more than a month delete account. : )))
Reply
#3

How about you simply deleting it after 1 month? We know when 1 month is over so it's pretty easy
Reply
#4

any ideas
Reply
#5

More info please, what register sytem do you use?? MySQL, dini, yini? ...
Reply
#6

DINI
Reply
#7

Quote:
Originally Posted by Sinner
Посмотреть сообщение
More info please, what register sytem do you use?? MySQL, dini, yini? ...
These aren't technically register systems. One is a database management system, the other two are modified file systems. They're based (derived) off file functions and allows users to read, write, create, open, close and save data (with additional functions). The way they handle and/or perform tasks (features) which offers simplicity and allow file type manipulation to be easier.
Reply
#8

Quote:
Originally Posted by Sync'
Посмотреть сообщение
These aren't technically register systems. One is a database management system, the other two are modified file systems. They're based (derived) off file functions and allows users to read, write, create, open, close and save data (with additional functions). The way they handle and/or perform tasks (features) which offers simplicity and allow file type manipulation to be easier.
I know that ^^ I just didn't think a scripting beginner would.

If you use DINI, calculate when a month is passed (save the date a player last logged in, use that date + 1 month). When the time is up remove the user file.
Reply
#9

"1 mouth"?
Reply
#10

Using Dini - which is the most outdated file writing system to date - to do this kind of stuff is difficult, almost near impossible to do effectively. You'd have to check ALL playerfiles (which can run into the tens of thousands) individually and check a value. During this process your server will hang, as opening and closing files is terribly slow, especially if you have a lot of them.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)