10.09.2013, 11:26
Did it print "0 leavecavegame called" but the message "[CAVE]You won in blabla, your best: blabla" did not appear?
Because it should.
EDIT: if you're using killerid at all, check if the killer is not INVALID_PLAYER_ID. I used to have a similar problem with a dueling system and it was causing OnPlayerDeath not being called at all.
Use crashdetect, it's really useful.
And/or a debug:
Because it should.
EDIT: if you're using killerid at all, check if the killer is not INVALID_PLAYER_ID. I used to have a similar problem with a dueling system and it was causing OnPlayerDeath not being called at all.
Use crashdetect, it's really useful.
And/or a debug:
pawn Код:
public OnPlayerDeath( playerid, killerid, reason )
{
printf( "DEBUG: OnPlayerDeath -> %d | %d | %d", playerid, killerid, reason );
return 1;
}