[ H3LP ] 3d dynamic array
Hello, I'm getting some trouble with 3d arrays. This is the code I'm using:
Code:
Output: Code:
sound/weapons/oy1.wav |
Re: [ H3LP ] 3d dynamic array
And what is the problem? This?
Code:
|
Re: [ H3LP ] 3d dynamic array
What I expected was:
Code:
sound/weapons/boxing_deploy1 |
Re: [ H3LP ] 3d dynamic array
You only need a 2d
new g_szKnivesSounds[eKnifeSounds][] |
Re: [ H3LP ] 3d dynamic array
I believe I need 3d. Here's how I'm using:
Code:
|
Re: [ H3LP ] 3d dynamic array
Show part of the code where KNIFE_SOUND is used and how you output
|
Re: [ H3LP ] 3d dynamic array
Code:
Spoiler
|
Re: [ H3LP ] 3d dynamic array
I Think At
Code:
formatex(szSound, charsmax(szSound), "weapons/%s.wav", g_szKnivesSounds[g_rgKnives[iKnifeId][KNIFE_SOUND]][iSoundId])Code:
g_szKnivesSounds[g_rgKnives[iKnifeId][KNIFE_SOUND]][iSoundId]Code:
g_szKnivesSounds[iKnifeId][iSoundId] |
Re: [ H3LP ] 3d dynamic array
The problem is not in emit sound, the problem is in 3d array. g_rgKnives[iKnifeId][KNIFE_SOUND] is nothing more than the sound index that I set in g_rgKnives.
|
Re: [ H3LP ] 3d dynamic array
Quote:
|
| All times are GMT -4. The time now is 12:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.