OnPlayerDeath Weird Problem [REP+]
#1

Hello,

I faced a very weird problem on my server, OnPlayerDeath callback doesn't return correct killerid and reason I tried to debug it and every statement is called I have also putted a print message and got the following results

Code
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	Server(playerid, "OnPlayerDeathCalled");
	printf("playerid: %d killerid: %d reason: %d", playerid, killerid, reason);
        return 1;
}
Output:
Код:
[04:07:49] playerid: 0 killerid: 65535 reason: 255
That printed when my friend killed me^

I tried to run nativechecker and crashdetect but nothing printed, also I don't think that code is needed because I debugged every statement and everything worked properly, any help would very appreciated


EDIT:
Problem is fixed, fix is here
Reply


Messages In This Thread
OnPlayerDeath Weird Problem [REP+] - by SecretBoss - 27.12.2015, 08:15
Re: OnPlayerDeath Weird Problem [REP+] - by lucamsx - 27.12.2015, 08:18
Re: OnPlayerDeath Weird Problem [REP+] - by SecretBoss - 27.12.2015, 08:22
Re: OnPlayerDeath Weird Problem [REP+] - by lucamsx - 27.12.2015, 09:02
Re: OnPlayerDeath Weird Problem [REP+] - by SecretBoss - 27.12.2015, 09:05
Re: OnPlayerDeath Weird Problem [REP+] - by PrO.GameR - 27.12.2015, 12:01
Re: OnPlayerDeath Weird Problem [REP+] - by SecretBoss - 27.12.2015, 13:09
Re: OnPlayerDeath Weird Problem [REP+] - by PrO.GameR - 27.12.2015, 13:41
Re: OnPlayerDeath Weird Problem [REP+] - by SpriTe - 27.12.2015, 13:48
Re: OnPlayerDeath Weird Problem [REP+] - by SecretBoss - 27.12.2015, 13:49

Forum Jump:


Users browsing this thread: 1 Guest(s)