View Single Post
Tirant
Veteran Member
Join Date: Jul 2008
Location: Los Angeles, California
Old 03-15-2012 , 14:13   Re: Array Copy Stock
Reply With Quote #32

Ya, that's why you should test code before posting. It would also not be able to work on an array with data less than equal 0.

Use arrayset(array, value, size)
arrayset(array2, array1[0], sizeof array2);
Precondition that sizeof array1 <= array2.
__________________

PM me if you're interested in buying the Credits addition for Base Builder
Battlefield Rebirth [66% done]
Call of Duty: MW2 [100% done]
Base Builder [100% done]
Tirant is offline