Strange issue: SetPlayerScore(playerid);
#1

Okey i have this strange issue with this function, i show my code:

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
        SendDeathMessage(killerid, playerid, reason);
	SetPlayerScore(playerid,GetPlayerScore(playerid)-1);
	if(killerid != INVALID_PLAYER_ID){SetPlayerScore(killerid,GetPlayerScore(killerid)+1);}
        return 1;
}
but when i try to test it and i suicide myself with a granade ( for example ) when the player dies the score still the same, why?
Reply


Messages In This Thread
Strange issue: SetPlayerScore(playerid); - by Galletziz - 07.10.2015, 07:23
Re: Strange issue: SetPlayerScore(playerid); - by jihadmeneer - 07.10.2015, 08:34
Re: Strange issue: SetPlayerScore(playerid); - by iggy1 - 07.10.2015, 08:52
Re: Strange issue: SetPlayerScore(playerid); - by Galletziz - 07.10.2015, 09:31

Forum Jump:


Users browsing this thread: 1 Guest(s)