Pause / Sleep function?
#5

Quote:
Originally Posted by ******
Посмотреть сообщение
It doesn't lag the server at all if it's done correctly - Mauzen's way was not done correctly. There are two ways of doing it. Firstly look up the real sleep function in the pawn manual, but this can only be used in main(). Secondly do something like:

pawn Код:
FuncPart1()
{
    printf("my code");
    SetTimer("FuncPart2", 1000, 0);
}

public FuncPart2()
{
    printf("My other code");
}
yea i know how the timer works, but isnt there just a simple function like sleep(1000); becuz it kinda sux, im having a timer with a code and in that timer i need a sleep function
Reply


Messages In This Thread
Pause / Sleep function? - by DaneAMattie - 18.08.2010, 12:46
Re: Pause / Sleep function? - by iggy1 - 18.08.2010, 13:20
Re: Pause / Sleep function? - by Mauzen - 18.08.2010, 13:33
Re: Pause / Sleep function? - by DaneAMattie - 18.08.2010, 14:50
Re: Pause / Sleep function? - by DaneAMattie - 18.08.2010, 18:05
Re: Pause / Sleep function? - by wups - 18.08.2010, 19:37
Re: Pause / Sleep function? - by DaneAMattie - 18.08.2010, 19:44
Re: Pause / Sleep function? - by Mauzen - 18.08.2010, 20:36
Re: Pause / Sleep function? - by DaneAMattie - 18.08.2010, 22:32
Re: Pause / Sleep function? - by Mauzen - 19.08.2010, 18:37

Forum Jump:


Users browsing this thread: 1 Guest(s)