Quote:
Originally Posted by maramizo
Where do you create your textdraw?
edit:
Here's how the code should be:
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid) { new str[40]; format(str, 40, "%.0f", amount); TextDrawSetString(Textdraw0, str); TextDrawShowForPlayer(playerid, Textdraw0); SetTimerEx("hideplayertd", 2000, 0, "i", playerid) return 1; }
forward hideplayertd(p); public hideplayertd(p) { TextDrawHideForPlayer(p, Textdraw0); return 1; }
|
Thanks bro. It worked. Now can you tell me that, when I give damage, the damaged number is shown below, but when I hit again, it shows the damaged number again. Instead I want all that damaged number to be added and inserted that had been hit within 2 seconds. How to do that?