Posts: 737
Threads: 338
Joined: Jan 2013
Hi,
How to sleep your code without while? because i know when you use while for a long time, then sometimes server will be always crashed even the time will be passed...
Posts: 737
Threads: 338
Joined: Jan 2013
Because i want to do, when a lot of queries is not completed, then i want to sleep my server for a while, when queries is completed then again on. I know how to check how much queries is not completed, just how well sleep your server. If with timer, please show how.
Posts: 737
Threads: 338
Joined: Jan 2013
This timer don't sleep my server... I need a function which can sleep server like that:
Код:
new bool:TWQEWEQEWt;
while(TWQEWEQEWt==false)
{
}
If i do like that, even i have a settimer made like:
Код:
new bool:TWQEWEQEWt;
SetTimer("OFFTQWEQWE",20000,false);
while(TWQEWEQEWt==false)
{
}
Код:
forward OFFTQWEQWE( );
public OFFTQWEQWE( )
{
TWQEWEQEWt = true;
}
I make this function when player spawn for test.
But here even 20 sec. have passed code is still hang.
Posts: 737
Threads: 338
Joined: Jan 2013
But know i have all make into R37, and i don't remake everything to R33 or lower...
Posts: 737
Threads: 338
Joined: Jan 2013
But here:
native mysql_query(conhandle, query[], bool:use_cache = true); // BlueG's R33+
Is no callback. Because in mysql_tquery you have to put a callback.