Raised This Month: $ Target: $400
 0% 

Random part of string... ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Gadzislaw007
Senior Member
Join Date: Nov 2009
Old 08-14-2012 , 14:46   Re: Random part of string... ?
Reply With Quote #6

Well, both ways look correct.
Thanks for helping me guys.

But it still doesn't work xD
PHP Code:
public hitsound(id)
{
    if (
random_num(1,5) == 5)
    {
        new 
sound[23] = "gad/hitsounds/hitX.wav" 
        
sound[17] = '0' random_num(18
        
emit_sound(idCHAN_BODYsoundVOL_NORMATTN_NORM0PITCH_NORM)

    }
    

the public hitsound(id) function is being called for sure, but the sound doesn't go on
it although works with console (spk sound/gad/hitsound/hit1.wav)

Last edited by Gadzislaw007; 08-14-2012 at 14:46.
Gadzislaw007 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 05:43.


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