13.02.2012, 21:20
So tira o fato de setar o score de quem morre, poem para nгo setar. Refiz seu code:
DEVE FUNFAR
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new Texto[30], Texto1[30];
ProgressaoInfo[killerid][Matou] ++;
ProgressaoInfo[killerid][Pontos] = (ProgressaoInfo[killerid][Matou] - ProgressaoInfo[killerid][Morreu]);
format(Texto, sizeof(Texto), "~l~Pontos: ~b~%d", ProgressaoInfo[killerid][Pontos]);
TextDrawSetString(ProgressaoInfo[killerid][TPontos], Texto);
TextDrawShowForPlayer(killerid, ProgressaoInfo[killerid][TPontos]);
format(Texto1, sizeof(Texto1), "~l~Pontos: ~b~%d", ProgressaoInfo[playerid][Pontos]);
TextDrawSetString(ProgressaoInfo[playerid][TPontos], Texto1);
TextDrawShowForPlayer(playerid, ProgressaoInfo[playerid][TPontos]);
SetPlayerScore(killerid, ProgressaoInfo[killerid][Pontos]);
return true;
}