SA-MP Forums Archive
decimal - 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: decimal (/showthread.php?tid=600608)



decimal - GeneralAref - 10.02.2016

how to make decimal and save it in this code?
Code:
PlayerInfo[playerid][pRatio]=PlayerInfo[playerid][pKill]/PlayerInfo[playerid][pDeath];
	format(str,sizeof(str),"~g~Kills:~w~%i-~r~Deaths:~w~%i-~p~Ratio ~g~K~w~/~r~D~w~:%i",PlayerInfo[playerid][pKill],PlayerInfo[playerid][pDeath],PlayerInfo[playerid][pRatio]);
	TextDrawSetString(info2[playerid],str);



Re: decimal - GangstaSunny - 10.02.2016

You should define "PlayerInfo[playerid][pRatio]" as float.


Re: decimal - Jefff - 10.02.2016

https://sampwiki.blast.hk/wiki/Floatround