- 0
Ora 00:00
-
Similar Content
-
- 5 replies
- 4,390 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.