Help with this.
#1

Im making a death textdraw all works fine but i want to define when i make damage on someone it comes on his death textdraw Damage: %.0f but ingame it comes Damage: 0 even if i shot him like 393939 times. Here is the code:
pawn Код:
format(string, sizeof(string), "Death\nName: %s\nWeaponkill: %s\nDamage: %.0f\nRemoving in [3] min", RPN(playerid), RWN(reason), amount);
                deathh[playerid] = CreateDynamic3DTextLabel(string, COLOR_WHITE, X, Y, Z, 15);
And i defined amount with this
pawn Код:
new Float: amount;
What is the problem?
Reply
#2

Try this;

pawn Код:
format(string, sizeof(string), "Death\nName: %s\nWeaponkill: %s\nDamage: %f\nRemoving in [3] min", RPN(playerid), RWN(reason), amount);
                deathh[playerid] = CreateDynamic3DTextLabel(string, COLOR_WHITE, X, Y, Z, 15);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)