for example
Code: Select all
lets say nnn := {John, Ultima, Online, etc };
setglobalproperty("Names", nnn);
i wanna erase just john from "Names"
take in consideration names will be random that was just exampleCode: Select all
lets say nnn := {John, Ultima, Online, etc };
setglobalproperty("Names", nnn);
i wanna erase just john from "Names"
take in consideration names will be random that was just exampleCode: Select all
function RemoveFromArray(byref x_array, match)
foreach index in (x_array)
if ( index == match )
x_array.Erase(_index_iter);
return 1;
endif
sleepms(2);
endforeach
return 0;
endfunction
Code: Select all
var nnn := {John, Ultima, Online, etc };
var new_array := RemoveElement(nnn, [position 4 example 1]);
setglobalproperty("Names", new_array);
Code: Select all
function RemoveElement(byref arry, position)
var newarray := { };
foreach thing in arry
if(thing != arry[position])
newarray.append(thing);
endif
endforeach
return newarray;
endfunction