05.08.2013, 22:22
I have all valid variables in place and set up... But I can't seem to get the data for Deaths and Kills to add 1 ontop of the current number set on that variable.
Код:
public OnPlayerDeath(playerid, killerid, reason) { new PlayerName[MAX_PLAYER_NAME], KillerName[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); GetPlayerName(killerid, KillerName, sizeof(KillerName)); format(string, sizeof(string), "%s has been killed by %s!", PlayerName, KillerName); SendClientMessageToAll(0xFFFFFFFF, string); pInfo[playerid][pDeaths] += 1; pInfo[killerid][pKills] += 1; return 1; }