*copyarray <destination array>[<first value>],<source array>[<first value>],<amount of data to copy>;
setarray .@test [0],1,2,3;setarray .@test1 [0],4,5;setarray .@test2[0],6,7;if(Class == Swordman) copyarray.@test [getarraysize(.@test)], .@test1[0], getarraysize(.@test1);//produce 1,2,3,4,5if(Baselevel > 90) copyarray.@test [getarraysize(.@test)], .@test2[0], getarraysize(.@test2);//produce 1,2,3,6,7
Thx very much n-nyou can also use setarray
for example
setarray .@test [0],1,2,3,4,5;
if(Class == Swordman)
setarray .@test [getarraysize(.@test)-1],6,7,8;
if(Baselevel > 90)
setarray .@test [getarraysize(.@test)-1],9,10;
array element 0-4 --->getarrasize will retrun 5i think that no neet the value -1 in the operation...
.@test [0] = 1
.@test [1] = 2
.@test [2] = 3
.@test [3] = 4
.@test [4] = 5
with:
setarray .@test [getarraysize(.@test)-1],6,7,8;
produce:
.@test [4] = 6
.@test [5] = 7
.@test [6] = 8
I'm right or I'm wrong?
But that does not overwrite the previous value?array element 0-4 --->getarrasize will retrun 5
so it's need to -1
um... you are correct,I got it wrong to overwrite the previousBut that does not overwrite the previous value?array element 0-4 --->getarrasize will retrun 5
so it's need to -1
Previous value => .@test [4] = 5
New Value => .@test [4] = 6
Not worryum... you are correct,I got it wrong to overwrite the previousBut that does not overwrite the previous value?array element 0-4 --->getarrasize will retrun 5
so it's need to -1
Previous value => .@test [4] = 5
New Value => .@test [4] = 6
*wanna dig a hole and hide*![]()
setarray .@test [getarraysize(.@test)],6,7,8;
We use essential cookies to make this site work, and optional cookies to enhance your experience.