- 0
Ora 00:00
-
Similar Content
-
- 5 replies
- 5.000 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
TheGodfather
Salut, vreau ca la functia payday, cand e ora 00:00 sa faca ceva. Am incercat mai multe variante dar nu merge verificarea pentru ora 00:00. Imi actualizeaza orele indiferent de ce ora e.
function PayDay(bool: Types) {
new hour,minn,sec, year, month, day, Interestt, rent; gString[0] = EOS;
getdate(year, month, day);
gettime(hour,minn,sec);
if((minn == 0 && Paydaydat == 0) || Types) {
defer ResetPD();
Paydaydat = 1;
defer ScadeLicentele();
if(hour == 0 && minn == 0) {
foreach(PersonalVehicles, idd) CarInfo[idd][Dayss] ++;
new queryy[128];
mysql_format(SQL, queryy, sizeof(queryy), "UPDATE `cars` SET `days`=`days`+1");
mysql_tquery(SQL, queryy, "", "");
mysql_format(SQL, queryy, sizeof(queryy), "UPDATE `users` SET `Days`=`Days`+1 WHERE `Member`>'0'");
mysql_tquery(SQL, queryy, "", "");
mysql_format(SQL, queryy, sizeof(queryy), "UPDATE `users` SET `ClanDayss`=`ClanDayss`+1 WHERE `Clan`>'0'");
mysql_tquery(SQL, queryy, "", "");
}
10 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now