OnPlayerDeath - Array index out of bounds
#2

pInfo[killerid][Kills]++;

This line too but I think it would highly unlikely...

if(InDuel[killerid] == 1)

As a matter of fact I don't like how the duel looks at all what happens if the the player somehow dies another way? There is no reference to the other duelist besides checking the killerid is a poor assumption, duel info should be stored in a enum which references each other players id in the duel.
Reply


Messages In This Thread
OnPlayerDeath - Array index out of bounds - by JaKe Elite - 05.05.2013, 04:10
Re: OnPlayerDeath - Array index out of bounds - by Pottus - 05.05.2013, 04:14
Re: OnPlayerDeath - Array index out of bounds - by JaKe Elite - 05.05.2013, 04:17
Re: OnPlayerDeath - Array index out of bounds - by Pottus - 05.05.2013, 04:19
Re: OnPlayerDeath - Array index out of bounds - by JaKe Elite - 05.05.2013, 04:36

Forum Jump:


Users browsing this thread: 1 Guest(s)