#1

how can i use "sleep" in Pawn without using any unnessecery timers...
i tried to do like this sleep(60000) - for 1 minute but it didn't work...
Reply
#2

You should not use sleep() in PAWN, because it is single threaded, and while your script running sleep() code, none of the server-client interaction gets processed. Sleep(60000) will cause a 1-minute complete desync for all players (commands, chat, moving will not work)

You have to use timers.
Reply
#3

Use y_timers if you're that lazy to use SetTimer.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)