30.10.2015, 18:50
If it compiles then it`s not wrong.. Just doing what isn`t expected of it.
Analyze the flow of logic. On line 7, you're always reading the position of player 0, because toplayerid will always be 0 at that point, since it was declared just a line above - the actual is written to it only later.
Analyze the flow of logic. On line 7, you're always reading the position of player 0, because toplayerid will always be 0 at that point, since it was declared just a line above - the actual is written to it only later.