SA-MP Forums Archive
Help with this. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with this. (/showthread.php?tid=464704)



Help with this. - Wizza - 18.09.2013

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?


Re: Help with this. - EiresJason - 18.09.2013

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);