Raised This Month: $ Target: $400
 0% 

Emit Sound with Timer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 01-16-2016 , 11:57   Re: Emit Sound with Timer
Reply With Quote #4

Explain better what you are trying to do, I was making assumptions with this.

A topic titled "Emit sound with timer" and "Hello where is my mistake ?" doesnt give much guidance.

One thing you can try with your code is declare b_StopSound[32] as global, and you need to size it 33 not 32. So at the top of all of your code, under the includes, put new bool:b_StopSound[33]. It is false by default so you do not need = false. Remove static b_StopSound[32] from the damage forward.

Add client_disconnect( id ) and use remove_task( id ) and b_StopSound[ id ] = false there.

SoundOff[client] = false has no effect to the variable you declared in the damage event. This only works when the variable is passed by reference, which it is not when passed with set_task().
__________________

Last edited by Bugsy; 01-16-2016 at 12:03.
Bugsy is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode