Posts: 1,297
Threads: 17
Joined: Apr 2011
Hello dear,
I am new to SQL coding, and I managed to code a BUD system that manages my server's database.
Basicly I created a VIP, with expiring date, I already created the timer that detects if the day is over, I would like to know how can I edit all offline players pExpire variable on the BUD sql datbase (only for people who has pPremium > 0).
I hope you can help me on this.
Posts: 912
Threads: 116
Joined: Jun 2012
Reputation:
0
Is this script related or database.
1) Script: wrong section
2) Hows your database (tables) setup?
Posts: 1,297
Threads: 17
Joined: Apr 2011
About the pExpire, how can I load the each players pExpire? and set it pExpire - 1? they are offline. and I apologize about the wrong thread location, I haven't paid attentiont o it.
Posts: 3,133
Threads: 71
Joined: Dec 2013
Reputation:
0
For all players, or only the players with a certain statistic / variable set? And how often are you trying to perform this operation?
Posts: 1,297
Threads: 17
Joined: Apr 2011
all online/offline players. one time each day, I am using a clock system, once it reachs midnight all the pExpire gets - 1
Posts: 1,297
Threads: 17
Joined: Apr 2011
Posts: 1,297
Threads: 17
Joined: Apr 2011
Somehow it doesnt work, what I want exacly is if I have 30 days on VIP, when a day is finished, it should be 29 do you understand how it works? so basicly pExpire var is how many days a user has left, when it reachs 0 it resets his premium.
The only problem now is the part where I should set everyone's on the DB to pExpire - 1 day, that code somehow did not work, I hope you can help me on this..