22-07-2009, 09:01 PM
if i was you i would remove PlayersOnMapHighIndex, put it this way.
Your index = 2. Your the only one on the map so PlayersOnMapHighIndex = 1, the loop will only draw index 1 so you will not draw. Well thats what from veiwing the code in mirage. If im wrong let me know
EDIT
ok i just seen the playeronmap bit so i guess im wrong about that, but Robin i did think highly of you until now.
If Player(i).Y = Y Then TUT TUT your checking the I not playersonmap so if your the only one on the map your checking the position of Index 1 not nessesary your Index. so if you are the only one on the map and your index is 2 If Player(i).Y = Y Then will return 0 every time
as the PlayersOnMapHighIndex will be 1 so the loop will only check for 1
Change
to
Your index = 2. Your the only one on the map so PlayersOnMapHighIndex = 1, the loop will only draw index 1 so you will not draw. Well thats what from veiwing the code in mirage. If im wrong let me know
EDIT
ok i just seen the playeronmap bit so i guess im wrong about that, but Robin i did think highly of you until now.
If Player(i).Y = Y Then TUT TUT your checking the I not playersonmap so if your the only one on the map your checking the position of Index 1 not nessesary your Index. so if you are the only one on the map and your index is 2 If Player(i).Y = Y Then will return 0 every time

Change
Code:
Player(i).Y = Y
to
Code:
Player(PlayersOnMap(I)).Y = Y