SA-MP Forums Archive
[Ajuda] Contar danos - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Contar danos (/showthread.php?tid=554639)



Contar danos - zqkRazer - 04.01.2015

Como faзo para contar danos q tirou ou levou tipo: tirou -26, dps -3 ai aparece na gametext -29, e quando a text sai zera o contador?

Код:
if (issuerid  != INVALID_PLAYER_ID)
    {
        new string[20];
        format(string, sizeof(string), "~w~-~r~%.0f", amount);
        GameTextForPlayer(playerid, string, 1000, 6);
        GameTextForPlayer(issuerid , string, 1000, 5);
        PlayerPlaySound(issuerid , 17802, 0.0, 0.0, 0.0);
    }