Quote:
Originally Posted by HamletEagle
Code:
I: g_szValues = "ARM_MP5"
iValue = ARM_MP5
.
.
.
iValue = ARM_SMOKEGRENADE // 18
II: g_szValues = "ARM_TMP"
iValue = ARM_MP5
.
.
.
iValue = ARM_SMOKEGRENADE // 18
You are setting for the same key all possible indexes, one after another. That's why you get only the last one. Get rid of the second for.
And do something like this:
PHP Code:
new const Values[][] = { ARM_MP5, ARM_TMP, ARM_P90, ARM_MAC10, ARM_AK47, ARM_SG552, ARM_M4A1, ARM_AUG, ARM_SCOUT, ARM_G3SG1, ARM_AWP, ARM_M3, ARM_XM1014, ARM_M249, ARM_FLASHBANG, ARM_HEGRENADE, ARM_KEVLAR, ARM_ASSAULT, ARM_SMOKEGRENADE }
TrieSetCell( g_tWeaponTrie, g_szValues[ i ], Values[i]);
|
Thanks so much, by the way you have to change
Code:
new const Values[][]
to
Code:
new const Values[] =
Any idea why armoury_entity entities have less BackPack Ammo as usual? AK47 and M4A1 have 60. It's okay as I'm gonna modify it
Thanks again!
__________________