I have changed the code to be a string instead of an integer array, but it seems like there’s an issue when calling the function on button click. The code works fine, but wrong data is sent to them.
I have tried to change it to send -1 (Btn1 would send 0, Btn2 → 1, Btn3 → 2 etc.) This is what I got: