Z3R0
New member
Couldn't find a place to add bug report from here... so here it goes...
array_push skips 0 values, where as setarray() does not
I tested with the following script
array_push skips 0 values, where as setarray() does not
I tested with the following script
Code:
prontera,154,170,4 script TEST 98,{
setarray(.@one, 0, 1, 2, 3);
dispbottom(getarraysize(.@one)); // 4
for(.@i = 0; .@i < getarraysize(.@one); .@i++) {
dispbottom(.@one[.@i]); // Displays 0,1,2,3
array_push(.@two, .@i); // Pushes 0,1,2,3 to array .@two
}
dispbottom(getarraysize(.@two)); // 3
for(.@i = 0; .@i < getarraysize(.@two); .@i++) {
dispbottom(.@two[.@i]); // Displays 1,2,3 // Skips 0
}
}