Works only with id 0.
#6

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.
Reply


Messages In This Thread
Works only with id 0. - by SpikeSpigel - 30.10.2015, 16:54
Re: Works only with id 0. - by iFiras - 30.10.2015, 16:55
Re: Works only with id 0. - by ATGOggy - 30.10.2015, 16:55
Re: Works only with id 0. - by SpikeSpigel - 30.10.2015, 16:58
Re: Works only with id 0. - by J0sh... - 30.10.2015, 17:01
Re: Works only with id 0. - by Macluawn - 30.10.2015, 18:50

Forum Jump:


Users browsing this thread: 3 Guest(s)