17.10.2017, 06:27
he meant that you are formatting in a wrong way.
Here is the corrected line
PHP код:
new Float:danoplayerbatida = (vHPcintoB[vehicleid] - vHPcintoA[vehicleid]) / 100;
//here you have declared it as a float
format(dmgstring, sizeof(dmgstring), "~r~%i.0", danoplayerbatida );
//and here in this line you are formatting as a integer but instead the proper way would be formatting it as a float with 0 decimal places.
PHP код:
format(dmgstring, sizeof(dmgstring), "~r~%.0f", danoplayerbatida );

