[Ajuda] Limpar accounts que nгo logam MYSQL
#4

Vlw, vou dar um rep pra cada um

To indo pelo caminho certo?
Alguйm me da mais uma luz fazendo favor?
Код:
forward HoraPayDay(); public HoraPayDay() {
	new h, m, s;
	gettime(h, m, s);
	if (h == 00 && m == 00 || h == 01 && m == 00 ||	h == 02 && m == 00 || h == 03 && m == 00 ||	h == 04 && m == 00 || h == 05 && m == 00 ||	h == 06 && m == 00 || h == 07 && m == 00 || 
		h == 08 && m == 00 || h == 09 && m == 00 || h == 10 && m == 00 || h == 11 && m == 00 || h == 12 && m == 00 || h == 13 && m == 00 || h == 14 && m == 00 || h == 15 && m == 00 || 
		h == 16 && m == 00 || h == 17 && m == 00 || h == 18 && m == 00 || h == 19 && m == 00 || h == 20 && m == 00 || h == 21 && m == 00 || h == 22 && m == 00 || h == 23 && m == 00
	){
		if(h == 07 && m == 00) { // globalSaveHour
			day = 86400
			if(experience[playerid] <= 50 && gettime() >= lastlogin[playerid] + 15 * day) {
				
			}
			else if(experience[playerid] <= 51 && experience[playerid] <= 100 && gettime() >= lastlogin[playerid] + 30 * day) {
				
			}
			else if(experience[playerid] <= 101 && experience[playerid] <= 250 && gettime() >= lastlogin[playerid] + 90 * day) {

			}
			else if(experience[playerid] <= 251 && experience[playerid] <= 500 && gettime() >= lastlogin[playerid] + 120 * day) {

			}
			else if(experience[playerid] >= 501 && gettime() >= lastlogin[playerid] + 360 * day) {

			}
			new MySQL_Format[200];
			mysql_query(ConnectMYSQL,"DELETE FROM `accounts` `lastlogin` < '%i'", VALOR );
			mysql_function_query(ConnectMYSQL, MySQL_Format, false, "", "");
		}
		tevepdextra = 0;
		PayDay();
		SetHora();
    }
    return 1;
}
Reply


Messages In This Thread
Limpar accounts que nгo logam MYSQL - by maikons - 03.06.2016, 19:58
Re: Limpar accounts que nгo logam MYSQL - by zSuYaNw - 03.06.2016, 20:12
Re: Limpar accounts que nгo logam MYSQL - by F1N4L - 03.06.2016, 20:13
Re: Limpar accounts que nгo logam MYSQL - by maikons - 03.06.2016, 21:23
Re: Limpar accounts que nгo logam MYSQL - by zSuYaNw - 03.06.2016, 21:56
Re: Limpar accounts que nгo logam MYSQL - by Dayvison_ - 03.06.2016, 22:58
Re: Limpar accounts que nгo logam MYSQL - by Dayvison_ - 03.06.2016, 23:43
Re: Limpar accounts que nгo logam MYSQL - by maikons - 04.06.2016, 01:59
Re: Limpar accounts que nгo logam MYSQL - by maikons - 05.06.2016, 18:11
Re: Limpar accounts que nгo logam MYSQL - by maikons - 09.06.2016, 19:20

Forum Jump:


Users browsing this thread: 1 Guest(s)