[Tutorial] A simple registration & login system with Dialogs - Using DOF2
#16

Here at OnPlayerDeath you're incrementing the kills of playerid instead of killer id.

pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
    if( killerid != INVALID_PLAYER_ID )
    {
        PlayerInfo[ playerid ][ pKills ] ++;
    }
    PlayerInfo[ playerid ][ pDeaths ] ++;
    return 1;
}
Shouldn't that be like this:
pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
    if( killerid != INVALID_PLAYER_ID )
    {
        PlayerInfo[ killerid ][ pKills ] ++;
    }
    PlayerInfo[ playerid ][ pDeaths ] ++;
    return 1;
}
Reply


Messages In This Thread
A simple registration & login system with Dialogs - Using DOF2 - by SmiT - 15.10.2011, 11:02
Re: A simple registration & login system with Dialogs - Using DOF2 - by Mr_Scripter - 15.10.2011, 13:48
Re: A simple registration & login system with Dialogs - Using DOF2 - by Jantjuh - 20.10.2011, 15:09
Re: A simple registration & login system with Dialogs - Using DOF2 - by BetaLaxx - 20.10.2011, 15:11
Re: A simple registration & login system with Dialogs - Using DOF2 - by lordturhan - 22.10.2011, 10:25
Re: A simple registration & login system with Dialogs - Using DOF2 - by SmiT - 23.10.2011, 12:20
Re: A simple registration & login system with Dialogs - Using DOF2 - by Dredd - 05.11.2011, 22:27
Re: A simple registration & login system with Dialogs - Using DOF2 - by bestr32 - 14.01.2012, 21:28
Re: A simple registration & login system with Dialogs - Using DOF2 - by Brian_G - 14.01.2012, 21:31
Re: A simple registration & login system with Dialogs - Using DOF2 - by Nezinuu - 13.02.2012, 15:17
Re: A simple registration & login system with Dialogs - Using DOF2 - by Drake_Lopez - 31.07.2012, 12:43
Re: A simple registration & login system with Dialogs - Using DOF2 - by Maniek - 03.10.2012, 14:03
Re: A simple registration & login system with Dialogs - Using DOF2 - by Mustafa6155 - 09.10.2012, 14:23
Re: A simple registration & login system with Dialogs - Using DOF2 - by michaelcosyns - 17.04.2013, 16:50
Re: A simple registration & login system with Dialogs - Using DOF2 - by ProgrammerZ - 15.06.2013, 14:39
Re: A simple registration & login system with Dialogs - Using DOF2 - by Goldilox - 15.06.2013, 15:40
Re: A simple registration & login system with Dialogs - Using DOF2 - by xVIP3Rx - 16.06.2013, 02:33
Re: A simple registration & login system with Dialogs - Using DOF2 - by Chrisis - 01.07.2013, 07:41

Forum Jump:


Users browsing this thread: 7 Guest(s)