all variables have been defined as Int, the tab works well with my other functions (it contains numbers from 0 to 9 and the tab is only 9 in length at max. parties also never exceeds 9.
but for some reason X, Y and diff turn out as 2686760, 2686756 and 2686324. I can't see why since as i said before, the tab works well in my other function and I only type in the values manually once.
Lmk if anyone can help out, or if I didnt give enough information. Thanks in advance !