Hi, I have this code with precaching sound and when I run server it falls down and show: Mod_NumForName: Left4Dead/Hunter_die1.wav
but i put all the files on the right place in sound files.
Whats the problem? Models work fine.
PHP Code:
new const ZOMBIE_MODEL[][] = {"hunter", "smoker"};
new const PLAYERMODEL_CLASSNAME[] = "ent_playermodel";
new const WEAPONMODEL_CLASSNAME[] = "ent_weaponmodel";
new const g_ZombieClaws[] = {"models/v_hunter_knife.mdl"};
new const g_sound_zombiewin[] = "umbrella/zombiewin.wav";
new const g_sound_humanwin[] = "umbrella/humanwin.wav";
new const g_sound_miss[][]=
{
"Left4Dead/Hunter_miss1.wav",
"Left4Dead/Hunter_miss2.wav",
"Left4Dead/Hunter_miss3.wav"
};
new const g_sound_hit[][]=
{
"Left4Dead/Hunter_strike1.wav",
"Left4Dead/Hunter_strike2.wav",
"Left4Dead/Hunter_strike3.wav"
};
new const g_sound_pain[][]=
{
"Left4Dead/Hunter_pain1.wav",
"Left4Dead/Hunter_pain2.wav",
"Left4Dead/Hunter_pain3.wav"
};
new const g_sound_die[][]=
{
"Left4Dead/Hunter_die1.wav",
"Left4Dead/Hunter_die2.wav"
};
new g_player_model[33][32];
new g_ent_playermodel[33];
new g_ent_weaponmodel[33];
new bool: g_Zombie[33];
new cvar_health, cvar_armor, cvar_gravity, cvar_speed, cvar_respawn, cvar_switch, cvar_semiclip,
cvar_semiclip_t, cvar_semiclip_ct;
public plugin_precache()
{
for(new i =0; i < sizeof ZOMBIE_MODEL; i++)
{
new modelpath[256];
formatex( modelpath, 255, "models/player/%s/%s.mdl", ZOMBIE_MODEL[i], ZOMBIE_MODEL[i] );
precache_model(modelpath);
}
new i;
for(i = 0; i < sizeof g_sound_die; i++)
engfunc(EngFunc_PrecacheModel, g_sound_die[i]);
for(i = 0; i < sizeof g_sound_hit; i++)
engfunc(EngFunc_PrecacheModel, g_sound_hit[i]);
for(i = 0; i < sizeof g_sound_miss; i++)
engfunc(EngFunc_PrecacheModel, g_sound_miss[i]);
for(i = 0; i < sizeof g_sound_pain; i++)
engfunc(EngFunc_PrecacheModel, g_sound_pain[i]);
precache_model(g_ZombieClaws);
precache_sound(g_sound_zombiewin);
precache_sound(g_sound_humanwin);
}