kills/deaths per round
#6

thx for ur answers.

But i already tried it like this:

pawn Код:
DeathsInRound[playerid]++;
if(killerid!=INVALID_PLAYER_ID)
{
KillsInRound[killerid]++;
}
But maybe the error is here, can i compare the kills of the players like this?
pawn Код:
new TotalScores[21];//21 cause i wanna compare 20 players.
new TotalPlayers[21];
new PlayerScore[2];
new PlayerID[2];
for(new i; i < MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {
        PlayerScore[0] = KillsInRound[i]; //killsperround
        PlayerID[0] = i;
        for(new place; place < sizeof(TotalScores); place++)
        {
            if(PlayerScore[0] > TotalScores[place])
            {
                strins(TotalScores, PlayerScore, place);
                strins(TotalPlayers, PlayerID, place);
                place = sizeof(TotalScores);
            }
        }
    }
Reply


Messages In This Thread
kills/deaths per round - by BlackWolf120 - 18.02.2011, 19:19
Re: kills/deaths per round - by (SF)Noobanatior - 18.02.2011, 19:25
Re: kills/deaths per round - by BlackWolf120 - 18.02.2011, 19:29
AW: kills/deaths per round - by !Phoenix! - 18.02.2011, 19:46
Re: kills/deaths per round - by Finn - 18.02.2011, 19:53
Re: kills/deaths per round - by BlackWolf120 - 18.02.2011, 19:58
Re: kills/deaths per round - by (SF)Noobanatior - 18.02.2011, 21:43
Re: kills/deaths per round - by BlackWolf120 - 19.02.2011, 00:18
Re: kills/deaths per round - by [WF]Demon - 19.02.2011, 00:25
Re: kills/deaths per round - by (SF)Noobanatior - 19.02.2011, 04:09

Forum Jump:


Users browsing this thread: 1 Guest(s)