![]() |
Alternative to sleep()
I was wondering if there was an alternative to the sleep() function.
If I'm not mistaken, sleep pretty much just pauses the functions of the script. DoThis; DoThat; sleep(1); <-- pauses for one second DoSomethingElse; I know it's a dumb question but I'm running into problems in my movement using sleep so I need another code that pauses a line in script. |
Post your code? The only thing I can think of is that you're not taking into account that sleep drops player scope (i.e. you can't reference the player via "player" after sleep or waitfor).
|
Try this.
PHP Code:
|
| All times are GMT +2. The time now is 04:17 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.