19.05.2013, 12:43
I use this little code to store kills/deaths in enums and use them onplayerdisconnect. But nothing happens. I added the sendclientmessage to be sure whether the problem is in disconnect function or in file writing. I do not receive the yes message so title says it all. Yes, in server.cfg file I have written first the fs that contains this, its the reglog fs. Any idea?
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
PlayerStats[killerid][Kills]++;
PlayerStats[playerid][Deaths]++;
SendClientMessage(playerid, 1, "yes");
return 1;
}