Quote:
Originally Posted by Mitchell
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.
__________________