27.06.2009, 10:54
In case anyone needs it.
If it has already been posted before, I apologize.
Note: Basically 'freezes' your code for 'x' amount of seconds.
If it has already been posted before, I apologize.
Note: Basically 'freezes' your code for 'x' amount of seconds.
Код:
Wait(milliseconds)
{
new ticks = GetTickCount() + milliseconds;
while(ticks > GetTickCount())
{
// waiting patiently...
}
}

