Thread: ADT Arrays
View Single Post
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 02-04-2014 , 01:37   Re: ADT Arrays
Reply With Quote #8

Quote:
Originally Posted by Mitchell View Post
Because it's exactly that. you would be cloning the handle. Which would assign a new handle to that variable. Although i cant seem to think of a senario where you would create an array, and then assign it to another variable then create another with the old variable.. If you make anything with handles just close it when you're done with it. or if it's a keyvalue then cache it in variables. No need in keeping a handle open. (Sometimes menus will be a handle you don't want to close.) Sometimes closing menu handles while the menu is still open on a client it can lead to a server crash.
You might use something like this if you are using an array of arrays, and you have to pass an array through some function,

Dunno, mabye the func could close the handle, at which point you could like... If findvalueinarray return value, removefromarray (because it was closed). Normally youd must pass the array, but if you had multiples, i suppose this could work. Dunno, haven't had this happen.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline