SA-MP Forums Archive
Delete accounts - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Delete accounts (/showthread.php?tid=298429)



Delete accounts - boyan96 - 20.11.2011

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


Re: Delete accounts - Huiz - 20.11.2011

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


Re: Delete accounts - zombieking - 20.11.2011

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


Re: Delete accounts - boyan96 - 21.11.2011

any ideas


Re: Delete accounts - Sinner - 21.11.2011

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


Re: Delete accounts - boyan96 - 21.11.2011

DINI


Re: Delete accounts - Sinc - 21.11.2011

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.


Re: Delete accounts - Sinner - 24.11.2011

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.


Re: Delete accounts - [GOD]Dragonster82 - 24.11.2011

"1 mouth"?


Re: Delete accounts - Vince - 24.11.2011

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.