Raised This Month: $ Target: $400
 0% 

where is the problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
RuRuRu612754
Senior Member
Join Date: Sep 2011
Old 07-04-2012 , 20:03   where is the problem
Reply With Quote #1

Hello

my code is compile miss

compile.exe :
PHP Code:
warning 203symbol is never used"sound_damege" 
sound.sma :
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fakemeta>

new const sound_damage[] =
{
    
"player/damage_1.wav",
    
"player/damage_2.wav",
    
"player/damage_3.wav"
}

public 
plugin_init() 

    
register_plugin("PLUGIN""VERSION""AUTHOR")

    
register_forward(FM_EmitSound"forward_fm_emitsound")
}

public 
plugin_precache()
{
    new 
new_sound random_num(0sizeof(sound_damage))
    
precache_model(new_sound)
}

public 
forward_fm_emitsound(idiChannelsample[], Float:fVolumeFloat:fAttenuationiFlagsiPitch)
{
    if(
is_user_alive(id))
    {
        if(
cs_get_user_team(id) == CS_TEAM_CT)
        {
            if(
equali(sample"weapons/bhit_flesh-1.wav") || equali(sample"weapons/bhit_flesh-2.wav") || equali(sample"weapons/bhit_flesh-3.wav"))
            {
                new 
new_sound random_num(0sizeof(sound_damage))
                
engfunc(EngFunc_EmitSoundidCHAN_STATICnew_sound1.0ATTN_NORM0PITCH_NORM)
            }
        }
    }

Best Regards,
RuRuRu612754 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 15:15.


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