13.02.2016, 18:21
Quote:
Query doesn't contain any specific data, so this should be all that you need: http://forum.sa-mp.com/showthread.ph...vent+scheduler
Running a timer every minute is seriously inefficient considering the function itself would only get executed 0.00009920634% of the time. |
Код:
if(tmphour == 0 && tmpminute == 0) { new querypanel[500]; format(querypanel, sizeof(querypanel), "UPDATE playeraccounts SET pRunners = 0, pArrests = 0, pTickets = 0, pDConf = 0, pLConf = 0, pLGive = 0, pTOrders = 0, pHealed = 0, pContracts = 0, pNews = 0, pLive = 0, pDDep = 0, pMaDep = 0, pMoDep = 0, pWK = 0, pWD = 0, pMUsed = 0 WHERE DAYOFWEEK(CURDATE()) = '6'"); mysql_tquery(handle, querypanel); }