Index out of bounds in de_dust2
Hi, I'm creating a plugin (based in this tutorial How To: Make a perfect NPC) and it works fine except in de_dust2 that gives me this error:
Code:
L 04/03/2011 - 20:49:45: [AMXX] Displaying debug trace (plugin "domination.amxx")It didn't give me any errors in the other maps that I tryed (de_nuke and aim_aztec_s) |
Re: Index out of bounds in de_dust2
Show your plugin.
|
Re: Index out of bounds in de_dust2
1 Attachment(s)
Here it is...
|
Re: Index out of bounds in de_dust2
What are the values of "id" in dbase_think(id)? If you don't know then find out.
I don't really know anything abotu NPCs but from an inconsistency I can see that it is more than likely bool:Dominator[33] being declared too small. The other two arrays on that line are bigger. |
Re: Index out of bounds in de_dust2
The value of "id" is the index of the base that is thinking (or at least I think so).
And the bool:Dominator[33] is for players while the other arrays are for the bases (max bases 99...) |
Re: Index out of bounds in de_dust2
Don't use arrays to hold values for entities.
You should instead use place holders like EV_INT_iuser1 to EV_INT_iuser4 |
Re: Index out of bounds in de_dust2
Are there more than 1 of your ents in de_dust2?
If so then you'll need to make a ent count to keep track of the ent's indices/indexes. As Exolent mentioned above. Best to use place holders to keep track. If I remember correctly... You can set and check an ent to a specific team with pev_team. Anyway, just fixed a few minor things. PHP Code:
|
Re: Index out of bounds in de_dust2
Quote:
|
| All times are GMT -4. The time now is 14:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.