Weekday, hour and minute check
#4

Quote:
Originally Posted by Vince
Посмотреть сообщение
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.
Would't it work if i use the query like this because i need the query to be used from the gamemode?
Код:
	
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);
	}
Reply


Messages In This Thread
Weekday, hour and minute check - by Maheegan - 12.02.2016, 21:45
Re: Weekday, hour and minute check - by Maheegan - 13.02.2016, 17:18
Re: Weekday, hour and minute check - by Vince - 13.02.2016, 17:31
Re: Weekday, hour and minute check - by Maheegan - 13.02.2016, 18:21
Re: Weekday, hour and minute check - by Vince - 13.02.2016, 19:02
Re: Weekday, hour and minute check - by Maheegan - 13.02.2016, 19:18

Forum Jump:


Users browsing this thread: 1 Guest(s)