[HELP] Variables arent counting
#1

I am using my own gamemode made from scratch.
On "OnPlayerDeath" function, none of the variables does not count.
I would like when killer gets killed he gets one more "pDeath" variable and the killer gets one more "pKill" variable.
If the guy kills himself, he gets one more "pDeath" variable. I scripted variables it does not work.
Or any other variable I could put does not count. Please help, this is my "OnPlayerDeath" function:

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
     if(killerid != INVALID_PLAYER_ID) // Valid killer
     {
        PlayerInfo[playerid][pDeaths] ++ ;
        LooseWeapons(playerid);
        PlayerInfo[killerid][pKills] ++;
     }
     if(killerid == INVALID_PLAYER_ID) // Invalid killer
     {
        PlayerInfo[playerid][pDeaths] ++ ;
        LooseWeapons(playerid);
     }
     return 1;
}
Reply


Messages In This Thread
[HELP] Variables arent counting - by DeadDon - 09.04.2012, 12:55
Re: [HELP] Variables arent counting - by Libra_PL - 09.04.2012, 12:56
Re: [HELP] Variables arent counting - by DeadDon - 09.04.2012, 13:01
Re: [HELP] Variables arent counting - by Cjgogo - 09.04.2012, 13:03
Re: [HELP] Variables arent counting - by Libra_PL - 09.04.2012, 13:04
Re: [HELP] Variables arent counting - by DeadDon - 09.04.2012, 13:04
Re: [HELP] Variables arent counting - by Cjgogo - 09.04.2012, 13:06
Re: [HELP] Variables arent counting - by emokidx - 09.04.2012, 13:12
Re: [HELP] Variables arent counting - by DeadDon - 09.04.2012, 13:12
Re: [HELP] Variables arent counting - by DeadDon - 09.04.2012, 13:21

Forum Jump:


Users browsing this thread: 1 Guest(s)