AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Mod_NumForName: weapons/mortar.wav not found (https://forums.alliedmods.net/showthread.php?t=82324)

Dr.G 12-21-2008 07:58

Mod_NumForName: weapons/mortar.wav not found
 
Hi

I have made a plugin that create a mortar field for a dod map, and it works perfect on windows server, and 1 linux server this far.. But not on my own... first i got this error

Quote:

FATAL ERROR (shutting down): Host_Error: PF_precache_sound_I: 'weapons/mortar.wav' Precache can only be done in spawn functions
And thought ok maybe it needs the sound precached in "public plugin_precache()" but that gives me a new error, this:

Quote:

FATAL ERROR (shutting down): Mod_NumForName: weapons/mortar.wav not found
Well since creating a mortar field is done with via an entity it should be apart of the game, and not need that sound in the first place.. it should just "belive" its a part of the game.. but it obviosly doesnt...

Anyone who knows how to solve this? The mortar field is created like this:
PHP Code:

new ent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"func_mortar_field")) 

Thanks in advance!

hzqst 12-21-2008 08:04

Re: Mod_NumForName: weapons/mortar.wav not found
 
precache this sound

Dr.G 12-21-2008 08:07

Re: Mod_NumForName: weapons/mortar.wav not found
 
Ive tryed that...

Quote:

Originally Posted by Dr.G (Post 730785)
And thought ok maybe it needs the sound precached in "public plugin_precache()" but that gives me a new error..


hzqst 12-21-2008 08:17

Re: Mod_NumForName: weapons/mortar.wav not found
 
liunx can go to the hell...


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

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