01.07.2015, 16:27
This is most likely the best solution: [Tutorial] How to: Unix timestamps
Unix timestamps (the kind used by sa-mp) are in seconds, easy to save/load, and you could just add 604800 seconds (7 days) to have a timestamp for a week in the future. If you dont feel like reading the tut.
Once you are using timestamps, you can turn the database column into a timestamp type if you plan on doing fancy stuff with the data outside of sa-mp, or just int will work too, and in sa-mp read it as integer.
Unix timestamps (the kind used by sa-mp) are in seconds, easy to save/load, and you could just add 604800 seconds (7 days) to have a timestamp for a week in the future. If you dont feel like reading the tut.
Once you are using timestamps, you can turn the database column into a timestamp type if you plan on doing fancy stuff with the data outside of sa-mp, or just int will work too, and in sa-mp read it as integer.