Plugin crashing server
PHP Code:
|
Re: Plugin crashing server
I think you don't need use "set_task" to show menu.
When you're precaching .mp3 SOUND, I think you need add sound/...example.mp3. Example: precache_sound("sound/soundmenu/gadafi.mp3") |
Re: Plugin crashing server
It plays... .. But what causes server to crash :o :/ ?
|
Re: Plugin crashing server
Use precache_generic( ) for Mp3 files. Plus, try adding the "sound/" to the path.
PHP Code:
|
Re: Plugin crashing server
set_task(0.1, "soundmenu")
:arrow: set_task(0.1, "soundmenu", id) Destroy the menu in the handler fwd if you are recreating it.. And always return plugin handled in menu handler forward.. |
Re: Plugin crashing server
Why did you even used set_task? I'm pretty sure that calling the function directly is more faster than set_task ...
You are showing a menu not passing a parameter to an object( player or whatever ) don't use (id, level, cid) use (id) and to check the admin flag use get_user_flags(id) & ADMIN_RCON ... |
| All times are GMT -4. The time now is 22:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.