What's wrong with my if statement?
#3

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:
pawn Код:
public OnPlayerDeath( playerid, killerid, reason )
{
    printf( "DEBUG: OnPlayerDeath -> %d | %d | %d", playerid, killerid, reason );
    return 1;
}
Reply


Messages In This Thread
What's wrong with my if statement? - by knackworst - 10.09.2013, 11:08
Re: What's wrong with my if statement? - by knackworst - 10.09.2013, 11:24
Re: What's wrong with my if statement? - by Konstantinos - 10.09.2013, 11:26
Re: What's wrong with my if statement? - by knackworst - 10.09.2013, 11:37
Re: What's wrong with my if statement? - by Konstantinos - 10.09.2013, 12:02

Forum Jump:


Users browsing this thread: 3 Guest(s)