Raised This Month: $ Target: $400
 0% 

Arrays


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 09-20-2013 , 22:20   Re: Arrays
Reply With Quote #3

You can't delete values from a static array as such, but you can however recreate something similar to the ArrayDeleteItem() function, and "pull" all of the values down, if you were to assume something like a cell with its value being 0 would be empty.

When you delete an item from a dynamic array, you are actually deleting a cell, therefore all cells that come after the one you deleted will drop 1 position, and the total array size will drop by 1.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode