Lose HP when car crashe
#4

he meant that you are formatting in a wrong way.
PHP код:
new Float:danoplayerbatida = (vHPcintoB[vehicleid] - vHPcintoA[vehicleid]) / 100
//here you have declared it as a float
format(dmgstringsizeof(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. 
Here is the corrected line
PHP код:
format(dmgstringsizeof(dmgstring), "~r~%.0f"danoplayerbatida ); 
Reply


Messages In This Thread
Lose HP when car crashe - by binnyl - 14.10.2017, 22:51
Re: Lose HP when car crashe - by Meller - 15.10.2017, 00:41
Re: Lose HP when car crashe - by binnyl - 17.10.2017, 02:45
Re: Lose HP when car crashe - by Zeth - 17.10.2017, 06:27
Re: Lose HP when car crashe - by TomRedlake - 17.10.2017, 10:21

Forum Jump:


Users browsing this thread: 1 Guest(s)