28.11.2015, 11:33
Hello, i want to make "How much damage you did" and its not working well.. first shot doing good, but after that is going crazy
Example: 1 hit with weapons give 18, and second hit gives 329832932
Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart) { if(RandomTarget(damagedid)) { new string[64]; IsTarget[playerid][DamageDID] += amount; format(string, sizeof(string)," %.0f",IsTarget[playerid][DamageDID]); SCM(playerid, -1, string); } return 1; }