2014-05-02, 02:11 AM
the problem with the first idea is that probably with your current knowlege, you wouldnt be able to pass 2 values back. methods would include passing a parameter by reference, the other is using a data structure(neither of which you cant use atm I would think). the latter idea with an if check is more at your level. just remember to reset the value of distance after you are done using it.

