Score Update
#2

Quote:
Originally Posted by Hadzaga
View Post
PHP Code:
public OnPlayerDeath(playeridkilleridreason)
{
    
SetPlayerArmour(playerid0);
    if(
killerid != INVALID_PLAYER_ID)
    {
        new 
level;
        
SendDeathMessage(killeridplayeridreason);
        
PlayerInfo[killerid][pKills] ++;
        
PlayerInfo[playerid][pDeaths] ++;
        
trenutnokills[killerid] ++;
           
trenutnodeaths[playerid] ++;
        
level SetPlayerScore(killerid,(GetPlayerScore(killerid))+1);
        
PlayerInfo[killerid][pLevel] = level;
        
SetPlayerScore(playerid,PlayerInfo[playerid][pLevel]); 
When i kill someone it puts me +1 score but it resets score of playerid(guy i killed).How can i save that score and when i join server i need to have that score,and dont reset PLAYERID score
Remove this line its not needed, since you didn't even trouble the person who died score at all.
PHP Code:
SetPlayerScore(playerid,PlayerInfo[playerid][pLevel]); 
Reply


Messages In This Thread
Score Update - by Hadzaga - 14.06.2018, 17:29
Re: Score Update - by Livity - 14.06.2018, 17:39
Re: Score Update - by Hadzaga - 14.06.2018, 17:52
Re: Score Update - by BiGuy - 14.06.2018, 18:06
Re: Score Update - by Hadzaga - 14.06.2018, 18:17
Re: Score Update - by Exhibit - 14.06.2018, 19:42
Re: Score Update - by Sew_Sumi - 14.06.2018, 20:34
Re: Score Update - by BiGuy - 14.06.2018, 20:52
Re: Score Update - by AmigaBlizzard - 14.06.2018, 21:57
Re: Score Update - by Stefcaaaa - 14.06.2018, 22:03
Re: Score Update - by Sew_Sumi - 14.06.2018, 22:15
Re: Score Update - by Hadzaga - 14.06.2018, 22:28
Re: Score Update - by BiGuy - 14.06.2018, 22:46

Forum Jump:


Users browsing this thread: 1 Guest(s)