Why this not working?? | rep++
#1

Hello, im maked this function for every 31 second check if 0 minutes, change server time to real time. but, this not working, i dont know why? any help?
timer:
Код:
SetTimer("MedServerTimer1", 31000, 1);
public:

Код:
public MedServerTimer1()
{
    new Minute;
    gettime(Minute);
    if(Minute == 0)
    {
    new Hour;
    gettime(Hour);

    SetWorldTime(Hour);

	new string[124];
    format(string, sizeof(string),""COL_LIME"[ULN]: "COL_WHITE"Now is %d hours.", Hour);
   	SendClientMessageToAll(-1,string);
    }

    return 1;
}
Reply


Messages In This Thread
Why this not working?? | rep++ - by TiXz0r - 13.05.2015, 13:55
Re: Why this not working?? | rep++ - by Dokins - 13.05.2015, 14:00
Re: Why this not working?? | rep++ - by TiXz0r - 13.05.2015, 14:02
Re: Why this not working?? | rep++ - by Dokins - 13.05.2015, 14:03
Re: Why this not working?? | rep++ - by TiXz0r - 13.05.2015, 14:05
Re: Why this not working?? | rep++ - by Dokins - 13.05.2015, 14:07
Re: Why this not working?? | rep++ - by TiXz0r - 13.05.2015, 14:09
Re: Why this not working?? | rep++ - by Dokins - 13.05.2015, 14:10

Forum Jump:


Users browsing this thread: 1 Guest(s)