OnPlayerDeath doesn't get called if updating variables
#1

Made a MySQL account system for my gamemode. Now OnPlayerDeath doesn't get called for some reason if I set variables there.

Doesn't get called:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    Kills[killerid] ++;
    Deaths[playerid] ++;
    SetPlayerColor(playerid, NOCLASS);
    SendDeathMessage(killerid, playerid, reason);
    TextDrawHideForPlayer(playerid, Textdraw0[playerid]);
    TextDrawHideForPlayer(playerid, Textdraw1[playerid]);
    return 1;
}
Gets called:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SetPlayerColor(playerid, NOCLASS);
    SendDeathMessage(killerid, playerid, reason);
    TextDrawHideForPlayer(playerid, Textdraw0[playerid]);
    TextDrawHideForPlayer(playerid, Textdraw1[playerid]);
    return 1;
}
Reply


Messages In This Thread
OnPlayerDeath doesn't get called if updating variables - by spedico - 19.01.2012, 20:44
Re: OnPlayerDeath doesn't get called if updating variables - by Scenario - 19.01.2012, 20:52
Re: OnPlayerDeath doesn't get called if updating variables - by spedico - 19.01.2012, 20:54
Re: OnPlayerDeath doesn't get called if updating variables - by Scenario - 19.01.2012, 21:25
Re: OnPlayerDeath doesn't get called if updating variables - by Psymetrix - 19.01.2012, 21:27

Forum Jump:


Users browsing this thread: 2 Guest(s)