where is the problem
Hello
my code is compile miss compile.exe : PHP Code:
PHP Code:
|
Re: where is the problem
As the warning says, you're never actually using the sound_damage string array. You need to precache sound not model. Use random( sizeof(var) ) since that returns a value ranging from 0 to max-1 instead of random_num(0,max) which would error if the max value is returned since the array is indexed from 0 to size-1. There may be other things wrong, I didn't look closely.
PHP Code:
PHP Code:
|
Re: where is the problem
@Bugsy
oh. i easy miss... PHP Code:
|
Re: where is the problem
@Bugsy
sorry error... Warning: Unable to open sound/3.wav for transfer PHP Code:
|
Re: where is the problem
Make sure the file exists in the correct folder on the server-side.
|
Re: where is the problem
@Bugsy
yes Warning: Unable to open //sound/damage_3.wav for transfer |
Re: where is the problem
Show the code you are using, because in code you posted here damage_3 is in player folder.
Code:
new const sound_damage[] = |
Re: where is the problem
@OvidiuS
I have put in a folder to certainty "sound/player/damage_*.wav" |
Re: where is the problem
has been resolve
thanks how to precache all the sound_damage? PHP Code:
|
Re: where is the problem
Code:
|
| All times are GMT -4. The time now is 15:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.