Posts: 308
Threads: 109
Joined: Oct 2010
Reputation:
0
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...
Posts: 498
Threads: 34
Joined: Jan 2010
Reputation:
0
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.
Posts: 1,988
Threads: 17
Joined: Apr 2011
Reputation:
0
Use y_timers if you're that lazy to use SetTimer.