Difference between revisions of "CopyArray"
Jump to navigation
Jump to search
imported>Haama (Added DupArray) |
imported>Haama (No global flag) |
||
(One intermediate revision by one other user not shown) | |||
Line 4: | Line 4: | ||
'''Syntax:''' | '''Syntax:''' | ||
(ArrayID:long) CopyArray ArrayID:long ''Size:long'' | (ArrayID:long) CopyArray ArrayID:long ''Size:long RefuseZero:short'' | ||
(ArrayID:long) DupArray ArrayID:long ''Size:long'' | (ArrayID:long) DupArray ArrayID:long ''Size:long RefuseZero:short'' | ||
Creates a copy of an array and returns the newly created ArrayID. | Creates a copy of an array and returns the newly created ArrayID. | ||
*If Size is not specified, the new array size is the same as the original. | *If Size is not specified, the new array size is the same as the original. | ||
*If Size is specified, the new array will be of the specified size (truncated or expanded). | *If Size is specified, the new array will be of the specified size (truncated or expanded). | ||
*If the array does not exist, it returns -1. | *If the array does not exist, it returns -1. | ||
*If ''RefuseZero'' is 1, then the new Array's ID will never be zero. | |||
==Notes== | ==Notes== |
Latest revision as of 12:31, 21 March 2008
A command for Pluggy
Syntax:
(ArrayID:long) CopyArray ArrayID:long Size:long RefuseZero:short (ArrayID:long) DupArray ArrayID:long Size:long RefuseZero:short
Creates a copy of an array and returns the newly created ArrayID.
- If Size is not specified, the new array size is the same as the original.
- If Size is specified, the new array will be of the specified size (truncated or expanded).
- If the array does not exist, it returns -1.
- If RefuseZero is 1, then the new Array's ID will never be zero.
Notes[edit | edit source]
- The new array has its EspID set to the calling esp