Mirage Source
PlayersOnMapHighIndex messed up - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Source Code Development (https://mirage-engine.uk/forums/forumdisplay.php?fid=51)
+----- Forum: Mirage Source 4 (Visual Basic 6) (https://mirage-engine.uk/forums/forumdisplay.php?fid=44)
+----- Thread: PlayersOnMapHighIndex messed up (/showthread.php?tid=2334)



PlayersOnMapHighIndex messed up - GIAKEN - 02-11-2008

Yeah, it's messed up. I go invisible when: I'm index 2, my friend is index 1. he leaves, I go invisible.


Re: PlayersOnMapHighIndex messed up - genusis - 13-11-2008

did you add anything extra ? its mostly the dx not clearing out right ^^.


Re: PlayersOnMapHighIndex messed up - GIAKEN - 13-11-2008

No...there's RTE 9's happening in the server.


Re: PlayersOnMapHighIndex messed up - genusis - 13-11-2008

hmm well me and DFA tested this he was 2 and i was 1 i never went invisible when he logged out, maybe we accidentally fixed it somehow. so what exact code does it highlight if it highlights any at all?.


Re: PlayersOnMapHighIndex messed up - GIAKEN - 13-11-2008

Code:
Sub HandleAttack(ByVal Index As Long)
Dim i As Long, n As Long
Dim Damage As Long

    ' Try to attack a player
    For i = 1 To High_Index
        i = PlayersOnline(i)
        Index = PlayersOnline(Index)

It highlights the last line there. I could fix it, but I'm too busy to look further into it.


Re: PlayersOnMapHighIndex messed up - genusis - 13-11-2008

well the only thing i see is if you or someone was attacking him when he was logging out

just add this to LeftGame
CanAttackPlayer = False