index out of bounds
I have this const:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Re: index out of bounds
PRIMARY[][] has 11 weapons , and allowed_primary[] has 10.. check that.
|
Re: index out of bounds
I know but I want that if allowed_primary has 10 then in menu shows 10 but primary still leaves 11, what I want to say is if there is guns id in allowed_primary so it will be in the menu.
example: new const allowed_primary[ ] = { 1, 2, 4, 5, 6, 7, 8, 9, 10, 11 } meniu: 1. 1 gun ( becouse id 1 ) 2. 2 gun ( becouse id 2 ) 3. 4 gun ( becouse id 4 ) and etc. |
Re: index out of bounds
"weapon_m4a1", // Gun ID - 1
its gun id 0 It starts with 0 not 1 |
Re: index out of bounds
Quote:
|
Re: index out of bounds
PHP Code:
PHP Code:
|
Re: index out of bounds
Quote:
|
| All times are GMT -4. The time now is 05:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.