[Solved]Array natives
Can someone explain to me with an example how does ArraySetCell and ArrayDeleteItem respond to an array with integers ?
I made a code (private code), and it uses ArrayDeleteItem on an integer array and ArraySetCell too, but instead of deleting and setting the cell value of the item either of them are creating an extra entry and replacing the last one with 0 (On using amx_load_setting_int_arr) :/, i just need good examples. thank you. |
Re: Array natives
They don't do that. Show us code or we can't help you. We don't need the whole code, just a working example that exhibits the same behavior that you are seeing.
|
Re: Array natives
Well thanks for trying to help man, i just fixed it, it was just me being dumb ;) thnx again :), But ill still tell where i was wrong in case any1 wants to know i was using ArrayPushCell instead of ArraySetCell
|
Re: [Solved]Array natives
By the way: ArrayDeleteItem removes an item from the array entirely. It doesn't just remove the content of the item. It works like this:
Code:
|
Re: [Solved]Array natives
hmmm... ok now i unerstood it properly... thnx mate ;)
|
| All times are GMT -4. The time now is 17:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.