Strange issue: SetPlayerScore(playerid);
#4

Quote:
Originally Posted by iggy1
Посмотреть сообщение
That's not even valid code.

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);
This is assuming it's the killer score that isn't changing. Your code should work btw.

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.
Thanks, solved.
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)