Quote:
Originally Posted by EFFx
Try replacing with random_num(0, ArraySize(g_arrayWinSounds) - 1), also, make sure that the array has size.
|
Quote:
Originally Posted by Natsheh
The dynamic array is empty.....
Check if it has a size bigger than 0.
|
that the array of sound, And maybe the problem is that I'm using a low SIZE
Code:
PrecacheSoundArray(Array:arrayHandle)
{
if (arrayHandle == Invalid_Array)
return;
new i, iSoundCount, szSound[16];
iSoundCount = ArraySize(arrayHandle);
for (i = 0; i < iSoundCount; i++)
{
ArrayGetString(arrayHandle, i, szSound, charsmax(szSound));
precache_sound(szSound);
}
}