07.10.2015, 08:52
(
Последний раз редактировалось iggy1; 07.10.2015 в 09:01.
Причина: Edited code added NOT_PLAYERID
)
Quote:
Originally Posted by jihadmeneer
Код:
GetPlayerScore(playerid) --; |
OP, problem might be that when you kill yourself - killerid will probably be INVALID_PLAYER_ID (as far as i can remember). So if you want to test it properly, just call OnPlayerDeath with your ID.
Код:
//Inside some command OnPlayerDeath(NOT_PLAYERID, playerid, 0);
EDIT: Also if it doesn't send INVALID_KILLER_ID, but instead your ID - you will just be decresing the score (playerid: your id) then increasing it (killerid: also your id) so it will have no effect.