19.01.2012, 20:44
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:
Gets called:
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;
}
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerColor(playerid, NOCLASS);
SendDeathMessage(killerid, playerid, reason);
TextDrawHideForPlayer(playerid, Textdraw0[playerid]);
TextDrawHideForPlayer(playerid, Textdraw1[playerid]);
return 1;
}