Quote:
Originally Posted by l4ulwtlln
1. dont have to be, it works in plugin_precache if ur only registering the plugin
2. cuz i want it to be dynamic, so when i change SoundNumber to another number, it will be another set of sounds
3. that wouldnt make it dynamic anymore
|
You can't do it the way you want to.
Example:
Code:
new SoundNumber = 4;
#define MAX_ALLOWED 64
new Sound_Test[SoundNumber][MAX_ALLOWED] = { "csound/1.wav","csound/2.wav","csound/3.wav","csound/4.wav" }
Would NOT work, you would get "Must be a constant expression" error.
This would work:
Code:
new Sound_Test[4][64] = { "csound/1.wav","csound/2.wav","csound/3.wav","csound/4.wav" }
You can't use variables and such, like you where.
__________________