[Include] [INC] Amit_B's Define Functions
#3

stock sleep2(s)
{
assert s > 0 && s < cellmax;
new nt[4], ot[4];
gettime(ot[0],ot[1],ot[2]);
ot[3] = ot[2] + (ot[1]*60) + (ot[0]*600);
while(nt[3] != (ot[3]+seconds))
{
gettime(nt[0],nt[1],nt[2]);
nt[3] = nt[2] + (nt[1]*60) + (nt[0]*600);
}
}
stupid thing in one thread, because of server death with it.
better use plugin Xthreads, or any other with system sleep func
Reply


Messages In This Thread
[INC] Amit_B's Define Functions - by Amit_B - 27.07.2009, 00:52
Re: [INC] Amit_B's Define Functions - by arnutisz - 27.07.2009, 07:13
Re: [INC] Amit_B's Define Functions - by G_ROW_Chez - 20.08.2009, 06:02
Re: [INC] Amit_B's Define Functions - by nuriel8833 - 20.08.2009, 06:20
Re: [INC] Amit_B's Define Functions - by JoeShk - 20.08.2009, 23:03
Re: [INC] Amit_B's Define Functions - by James_Alex - 21.08.2009, 10:12

Forum Jump:


Users browsing this thread: 1 Guest(s)